]> git.sur5r.net Git - u-boot/commitdiff
common/cmd_universe.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Wed, 9 Nov 2011 09:29:03 +0000 (09:29 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 20:04:55 +0000 (21:04 +0100)
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>
common/cmd_universe.c

index a86a5746b0d80a6a88af765a7c336fe4794100e8..58384f3b8bec3a0d485aeaea933182294a7a1133 100644 (file)
@@ -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;
 }