From 9727aea1495d3deb0c451a8af2c2a8fe4599a841 Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Mon, 6 Oct 2008 20:42:03 +0000 Subject: remove dead stores and newly created unused variables. Found by LLVM/Clang Static Analyzer. ok weingart@ --- sys/arch/amd64/amd64/cpu.c | 5 +---- sys/arch/amd64/amd64/db_disasm.c | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/arch/amd64') 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; -- cgit v1.2.3