From e8260cb25aae7051bf0cce91814b9d606d1d097e Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:54 +0000 Subject: [PATCH] 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 Cc: Heiko Schocher --- common/cmd_i2c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index 3ea75f7..a0c5291 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; -- 2.7.4