Commit 1c12bf8de7e1557afeedd55d9bcec6b6a6d7b5d1

Authored by Mauro Carvalho Chehab
1 parent 41f55d5755

[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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/media/dvb-frontends/tda10071.c
... ... @@ -1205,12 +1205,14 @@
1205 1205 /* make sure demod i2c address is specified */
1206 1206 if (!config->demod_i2c_addr) {
1207 1207 dev_dbg(&i2c->dev, "%s: invalid demod i2c address!\n", __func__);
  1208 + ret = -EINVAL;
1208 1209 goto error;
1209 1210 }
1210 1211  
1211 1212 /* make sure tuner i2c address is specified */
1212 1213 if (!config->tuner_i2c_addr) {
1213 1214 dev_dbg(&i2c->dev, "%s: invalid tuner i2c address!\n", __func__);
  1215 + ret = -EINVAL;
1214 1216 goto error;
1215 1217 }
1216 1218