From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:18 +0000 (+0000) Subject: board/esd/pf5200/pf5200.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~295 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7df80ac92d6c0ae71cf95a3c67934ca5e4f7eb36;p=u-boot 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 Cc: Reinhard Arlt --- diff --git a/board/esd/pf5200/pf5200.c b/board/esd/pf5200/pf5200.c index 83dbfcbbda..2e07ac1209 100644 --- a/board/esd/pf5200/pf5200.c +++ b/board/esd/pf5200/pf5200.c @@ -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); }