diff options
-rw-r--r-- | drivers/media/common/tuners/tda18271-fe.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c index b2e15456d5f3..7955e49a3440 100644 --- a/drivers/media/common/tuners/tda18271-fe.c +++ b/drivers/media/common/tuners/tda18271-fe.c | |||
@@ -1249,7 +1249,7 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr, | |||
1249 | struct tda18271_config *cfg) | 1249 | struct tda18271_config *cfg) |
1250 | { | 1250 | { |
1251 | struct tda18271_priv *priv = NULL; | 1251 | struct tda18271_priv *priv = NULL; |
1252 | int instance; | 1252 | int instance, ret; |
1253 | 1253 | ||
1254 | mutex_lock(&tda18271_list_mutex); | 1254 | mutex_lock(&tda18271_list_mutex); |
1255 | 1255 | ||
@@ -1268,10 +1268,12 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr, | |||
1268 | priv->cal_initialized = false; | 1268 | priv->cal_initialized = false; |
1269 | mutex_init(&priv->lock); | 1269 | mutex_init(&priv->lock); |
1270 | 1270 | ||
1271 | if (tda_fail(tda18271_get_id(fe))) | 1271 | ret = tda18271_get_id(fe); |
1272 | if (tda_fail(ret)) | ||
1272 | goto fail; | 1273 | goto fail; |
1273 | 1274 | ||
1274 | if (tda_fail(tda18271_assign_map_layout(fe))) | 1275 | ret = tda18271_assign_map_layout(fe); |
1276 | if (tda_fail(ret)) | ||
1275 | goto fail; | 1277 | goto fail; |
1276 | 1278 | ||
1277 | mutex_lock(&priv->lock); | 1279 | mutex_lock(&priv->lock); |