aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/dvb-frontends/tda10071.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 14:43:19 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 14:43:41 -0200
commit1c12bf8de7e1557afeedd55d9bcec6b6a6d7b5d1 (patch)
tree9e1f6a83b25ebc524ed972afe5e093eb8257c168 /drivers/media/dvb-frontends/tda10071.c
parent[media] tda10071: make sure both tuner and demod i2c addresses are specified (diff)
downloadwireguard-linux-1c12bf8de7e1557afeedd55d9bcec6b6a6d7b5d1.tar.xz
wireguard-linux-1c12bf8de7e1557afeedd55d9bcec6b6a6d7b5d1.zip
[media] tda10071: fix a warning introduced by changeset 41f55d5755
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>
Diffstat (limited to 'drivers/media/dvb-frontends/tda10071.c')
-rw-r--r--drivers/media/dvb-frontends/tda10071.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb-frontends/tda10071.c
index 02f9234a5400..2521f7e23018 100644
--- a/drivers/media/dvb-frontends/tda10071.c
+++ b/drivers/media/dvb-frontends/tda10071.c
@@ -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;
}