mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
board/esd/pf5200/pf5200.c: Fix GCC 4.6 build warning
Fix: pf5200.c: In function 'do_phypower': pf5200.c:330:6: warning: variable 'status' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
This commit is contained in:
parent
0333185352
commit
7df80ac92d
1 changed files with 4 additions and 6 deletions
|
@ -327,13 +327,11 @@ int phypower(int flag)
|
|||
|
||||
int do_phypower(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
int status;
|
||||
if (argv[1][0] == '0')
|
||||
(void)phypower(0);
|
||||
else
|
||||
(void)phypower(1);
|
||||
|
||||
if (argv[1][0] == '0') {
|
||||
status = phypower(0);
|
||||
} else {
|
||||
status = phypower(1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue