From eec9e0d61bf548d7bccea47314e6692e8b1f79c0 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 22 Aug 2010 09:29:28 +0000 Subject: [PATCH] Drop some unused variables Found with this Coccinelle script: @@ type T; identifier i; expression E; @@ ( extern T i; | - T i; <+... when != i - i = E; ...+> ) Signed-off-by: Blue Swirl git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@855 f158a5a8-5612-0410-a976-696ce0be7e32 --- arch/sparc32/romvec.c | 3 +-- drivers/pc_kbd.c | 3 --- drivers/pc_serial.c | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/sparc32/romvec.c b/arch/sparc32/romvec.c index d80f097..1359466 100644 --- a/arch/sparc32/romvec.c +++ b/arch/sparc32/romvec.c @@ -197,10 +197,9 @@ static const char *obp_nextprop(int node, const char *name) return ""; } else { - int len; char *str; - len = POP(); + POP(); /* len */ str = (char *) POP(); DPRINTF("obp_nextprop(0x%x, %s) = %s\n", node, name, str); diff --git a/drivers/pc_kbd.c b/drivers/pc_kbd.c index 270dbf1..0f1ee70 100644 --- a/drivers/pc_kbd.c +++ b/drivers/pc_kbd.c @@ -164,15 +164,12 @@ pc_kbd_open(unsigned long *address) int len; phandle_t ph; unsigned long *prop; - char *args; fword("my-self"); fword("ihandle>phandle"); ph = (phandle_t)POP(); prop = (unsigned long *)get_property(ph, "address", &len); *address = *prop; - fword("my-args"); - args = pop_fstr_copy(); RET ( -1 ); } diff --git a/drivers/pc_serial.c b/drivers/pc_serial.c index a37895e..583d1c0 100644 --- a/drivers/pc_serial.c +++ b/drivers/pc_serial.c @@ -145,15 +145,12 @@ pc_serial_open(unsigned long *address) int len; phandle_t ph; unsigned long *prop; - char *args; fword("my-self"); fword("ihandle>phandle"); ph = (phandle_t)POP(); prop = (unsigned long *)get_property(ph, "address", &len); *address = *prop; - fword("my-args"); - args = pop_fstr_copy(); RET ( -1 ); }