[media] tda10071: remove a duplicative test
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jan 2014 12:00:34 +0000 (09:00 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 24 Feb 2014 13:34:43 +0000 (10:34 -0300)
"ret" is an error code here, we already tested that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/tda10071.c

index 8ad3a57cf64032446fb50fc28d2cfce6739bb18b..a76df29c497359f9b3f275d4f98a8a4f38f2213e 100644 (file)
@@ -1006,8 +1006,7 @@ static int tda10071_init(struct dvb_frontend *fe)
                                dev_err(&priv->i2c->dev, "%s: firmware " \
                                                "download failed=%d\n",
                                                KBUILD_MODNAME, ret);
-                               if (ret)
-                                       goto error_release_firmware;
+                               goto error_release_firmware;
                        }
                }
                release_firmware(fw);