diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-10-06 20:42:03 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-10-06 20:42:03 +0000 |
commit | 9727aea1495d3deb0c451a8af2c2a8fe4599a841 (patch) | |
tree | d6658cb20db8c96ff995b37bc700b1e4dc7474b3 /sys/arch | |
parent | 3b748a35eed231f2cc347c4fe4af63f6177df3b2 (diff) |
remove dead stores and newly created unused variables.
Found by LLVM/Clang Static Analyzer.
ok weingart@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/cpu.c | 5 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/db_disasm.c | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c index 9aba7847ea1..c7222a901d4 100644 --- a/sys/arch/amd64/amd64/cpu.c +++ b/sys/arch/amd64/amd64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.19 2008/06/26 05:42:09 ray Exp $ */ +/* $OpenBSD: cpu.c,v 1.20 2008/10/06 20:42:02 chl Exp $ */ /* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -428,11 +428,8 @@ cpu_init_idle_pcbs(void) void cpu_start_secondary(struct cpu_info *ci) { - struct pcb *pcb; int i; - pcb = ci->ci_idle_pcb; - ci->ci_flags |= CPUF_AP; CPU_STARTUP(ci); diff --git a/sys/arch/amd64/amd64/db_disasm.c b/sys/arch/amd64/amd64/db_disasm.c index d24d77d198a..3f154bb8a87 100644 --- a/sys/arch/amd64/amd64/db_disasm.c +++ b/sys/arch/amd64/amd64/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.8 2007/11/05 19:23:24 miod Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.9 2008/10/06 20:42:02 chl Exp $ */ /* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */ /* @@ -1089,7 +1089,6 @@ db_disasm(db_addr_t loc, boolean_t altfmt) int len; int rex = 0; int segovr_grp; - int rep_grp; int repe, repne; struct i_addr address; db_addr_t loc_orig = loc; @@ -1100,7 +1099,6 @@ db_disasm(db_addr_t loc, boolean_t altfmt) size = LONG; seg = 0; segovr_grp = 0; - rep_grp = 0; repe = 0; repne = 0; |