diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-21 11:43:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-12-21 11:43:41 -0500 |
commit | 1c12bf8de7e1557afeedd55d9bcec6b6a6d7b5d1 (patch) | |
tree | 9e1f6a83b25ebc524ed972afe5e093eb8257c168 | |
parent | 41f55d57552b7d2236f94fccb5cdd07dbf2e8557 (diff) |
[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>
-rw-r--r-- | drivers/media/dvb-frontends/tda10071.c | 2 |
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, | |||
1205 | /* make sure demod i2c address is specified */ | 1205 | /* make sure demod i2c address is specified */ |
1206 | if (!config->demod_i2c_addr) { | 1206 | if (!config->demod_i2c_addr) { |
1207 | dev_dbg(&i2c->dev, "%s: invalid demod i2c address!\n", __func__); | 1207 | dev_dbg(&i2c->dev, "%s: invalid demod i2c address!\n", __func__); |
1208 | ret = -EINVAL; | ||
1208 | goto error; | 1209 | goto error; |
1209 | } | 1210 | } |
1210 | 1211 | ||
1211 | /* make sure tuner i2c address is specified */ | 1212 | /* make sure tuner i2c address is specified */ |
1212 | if (!config->tuner_i2c_addr) { | 1213 | if (!config->tuner_i2c_addr) { |
1213 | dev_dbg(&i2c->dev, "%s: invalid tuner i2c address!\n", __func__); | 1214 | dev_dbg(&i2c->dev, "%s: invalid tuner i2c address!\n", __func__); |
1215 | ret = -EINVAL; | ||
1214 | goto error; | 1216 | goto error; |
1215 | } | 1217 | } |
1216 | 1218 | ||