summaryrefslogtreecommitdiff
path: root/board/esd/pf5200
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:18 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:11:31 +0100
commit7df80ac92d6c0ae71cf95a3c67934ca5e4f7eb36 (patch)
treed35e7cd6b93107c53ceb066edaaa5c3960a9d356 /board/esd/pf5200
parent03331853528ad2b70bc0dca06e2d4354ec899c4f (diff)
downloadu-boot-imx-7df80ac92d6c0ae71cf95a3c67934ca5e4f7eb36.zip
u-boot-imx-7df80ac92d6c0ae71cf95a3c67934ca5e4f7eb36.tar.gz
u-boot-imx-7df80ac92d6c0ae71cf95a3c67934ca5e4f7eb36.tar.bz2
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>
Diffstat (limited to 'board/esd/pf5200')
-rw-r--r--board/esd/pf5200/pf5200.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/board/esd/pf5200/pf5200.c b/board/esd/pf5200/pf5200.c
index 83dbfcb..2e07ac1 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);
}