summaryrefslogtreecommitdiffstats
path: root/common/cmd_universe.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-09 09:29:03 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:04:55 +0100
commite4119560cf5287fdfef3c0ad1f11bc45f77f0c0f (patch)
treeae23fa20a7c38c18fba78e2a4e0d1b3066de8c84 /common/cmd_universe.c
parent4ec6e4a88fbe4876f46f3c0dbc6292b4bb0530f0 (diff)
downloadtalos-obmc-uboot-e4119560cf5287fdfef3c0ad1f11bc45f77f0c0f.tar.gz
talos-obmc-uboot-e4119560cf5287fdfef3c0ad1f11bc45f77f0c0f.zip
common/cmd_universe.c: Fix GCC 4.6 build warning
Fix: cmd_universe.c: In function 'universe_init': cmd_universe.c:49:17: warning: variable 'lastError' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/cmd_universe.c')
-rw-r--r--common/cmd_universe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/cmd_universe.c b/common/cmd_universe.c
index a86a5746b0..58384f3b8b 100644
--- a/common/cmd_universe.c
+++ b/common/cmd_universe.c
@@ -46,7 +46,7 @@ static UNI_DEV *dev;
int universe_init(void)
{
- int j, result, lastError = 0;
+ int j, result;
pci_dev_t busdevfn;
unsigned int val;
@@ -126,8 +126,6 @@ int universe_init(void)
break_30:
free(dev);
break_20:
- lastError = result;
-
return result;
}
OpenPOWER on IntegriCloud