mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -197,10 +197,9 @@ static const char *obp_nextprop(int node, const char *name)
|
|||||||
|
|
||||||
return "";
|
return "";
|
||||||
} else {
|
} else {
|
||||||
int len;
|
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
len = POP();
|
POP(); /* len */
|
||||||
str = (char *) POP();
|
str = (char *) POP();
|
||||||
|
|
||||||
DPRINTF("obp_nextprop(0x%x, %s) = %s\n", node, name, str);
|
DPRINTF("obp_nextprop(0x%x, %s) = %s\n", node, name, str);
|
||||||
|
|||||||
@@ -164,15 +164,12 @@ pc_kbd_open(unsigned long *address)
|
|||||||
int len;
|
int len;
|
||||||
phandle_t ph;
|
phandle_t ph;
|
||||||
unsigned long *prop;
|
unsigned long *prop;
|
||||||
char *args;
|
|
||||||
|
|
||||||
fword("my-self");
|
fword("my-self");
|
||||||
fword("ihandle>phandle");
|
fword("ihandle>phandle");
|
||||||
ph = (phandle_t)POP();
|
ph = (phandle_t)POP();
|
||||||
prop = (unsigned long *)get_property(ph, "address", &len);
|
prop = (unsigned long *)get_property(ph, "address", &len);
|
||||||
*address = *prop;
|
*address = *prop;
|
||||||
fword("my-args");
|
|
||||||
args = pop_fstr_copy();
|
|
||||||
|
|
||||||
RET ( -1 );
|
RET ( -1 );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,15 +145,12 @@ pc_serial_open(unsigned long *address)
|
|||||||
int len;
|
int len;
|
||||||
phandle_t ph;
|
phandle_t ph;
|
||||||
unsigned long *prop;
|
unsigned long *prop;
|
||||||
char *args;
|
|
||||||
|
|
||||||
fword("my-self");
|
fword("my-self");
|
||||||
fword("ihandle>phandle");
|
fword("ihandle>phandle");
|
||||||
ph = (phandle_t)POP();
|
ph = (phandle_t)POP();
|
||||||
prop = (unsigned long *)get_property(ph, "address", &len);
|
prop = (unsigned long *)get_property(ph, "address", &len);
|
||||||
*address = *prop;
|
*address = *prop;
|
||||||
fword("my-args");
|
|
||||||
args = pop_fstr_copy();
|
|
||||||
|
|
||||||
RET ( -1 );
|
RET ( -1 );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user