[media] tda10071: fix a warning introduced by changeset 41f55d5755
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 16:43:19 +0000 (14:43 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 16:43:41 +0000 (14:43 -0200)
The two new tests don't set the returned value.

Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/tda10071.c

index 02f9234a540029e09ee105e89c064855330c7268..2521f7e23018f70a33a9ad43e1bb26e79e037ab8 100644 (file)
@@ -1205,12 +1205,14 @@ struct dvb_frontend *tda10071_attach(const struct tda10071_config *config,
        /* make sure demod i2c address is specified */
        if (!config->demod_i2c_addr) {
                dev_dbg(&i2c->dev, "%s: invalid demod i2c address!\n", __func__);
+               ret = -EINVAL;
                goto error;
        }
 
        /* make sure tuner i2c address is specified */
        if (!config->tuner_i2c_addr) {
                dev_dbg(&i2c->dev, "%s: invalid tuner i2c address!\n", __func__);
+               ret = -EINVAL;
                goto error;
        }