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 <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@855 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2010-08-22 09:29:28 +00:00
parent 8943d89e26
commit eec9e0d61b
3 changed files with 1 additions and 8 deletions

View File

@@ -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);

View File

@@ -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 );
}

View File

@@ -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 );
}