diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-04 15:55:54 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:15:57 +0100 |
commit | e8260cb25aae7051bf0cce91814b9d606d1d097e (patch) | |
tree | dd116d05351441ba122c3e881616abb27f18a171 /common | |
parent | 1f8843344221f9e7b2de598b0ccd289abb85c58d (diff) | |
download | u-boot-e8260cb25aae7051bf0cce91814b9d606d1d097e.tar.gz u-boot-e8260cb25aae7051bf0cce91814b9d606d1d097e.tar.bz2 u-boot-e8260cb25aae7051bf0cce91814b9d606d1d097e.zip |
common/cmd_i2c.c: Fix GCC 4.6 build warning
Fix:
cmd_i2c.c: In function 'do_i2c_add_bus':
cmd_i2c.c:1212:19: warning: variable 'dev' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_i2c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index 3ea75f75fd..a0c5291bff 100644 --- a/common/cmd_i2c.c +++ b/common/cmd_i2c.c @@ -1209,9 +1209,7 @@ static int do_i2c_add_bus(cmd_tbl_t * cmdtp, int flag, int argc, char * const ar device = device->next; } } else { - I2C_MUX_DEVICE *dev; - - dev = i2c_mux_ident_muxstring ((uchar *)argv[1]); + (void)i2c_mux_ident_muxstring ((uchar *)argv[1]); ret = 0; } return ret; |