]> git.sur5r.net Git - u-boot/commitdiff
board/esd/pf5200/pf5200.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Fri, 4 Nov 2011 15:55:18 +0000 (15:55 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:11:31 +0000 (22:11 +0100)
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>
board/esd/pf5200/pf5200.c

index 83dbfcbbda0db9d934459042543c42389dae6b58..2e07ac12093d234c77d0cf0d4322a1d1096965c0 100644 (file)
@@ -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);
 }