ASoC: Fix warning in WM1250-EV1 driver
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Jul 2011 15:27:18 +0000 (16:27 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 9 Aug 2011 15:38:58 +0000 (00:38 +0900)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/codecs/wm1250-ev1.c

index bbcf9ec34759edba6629c64cc1f6e35885a2cab3..a98a3ff1ee738761de72a283e11d599ee242bb9e 100644 (file)
@@ -58,12 +58,12 @@ static struct snd_soc_codec_driver soc_codec_dev_wm1250_ev1 = {
 static int __devinit wm1250_ev1_probe(struct i2c_client *i2c,
                                      const struct i2c_device_id *i2c_id)
 {
-       int ret, id, board, rev;
+       int id, board, rev;
 
        board = i2c_smbus_read_byte_data(i2c, 0);
        if (board < 0) {
-               dev_err(&i2c->dev, "Failed to read ID: %d\n", ret);
-               return ret;
+               dev_err(&i2c->dev, "Failed to read ID: %d\n", board);
+               return board;
        }
 
        id = (board & 0xfe) >> 2;