提交 e546b1ef 编写于 作者: W Wei Yongjun 提交者: Mauro Carvalho Chehab

[media] cx88: fix error return code in cx8802_dvb_probe()

Fix to return error code -ENODEV from the error handling case
instead of 0(err maybe overwrited to 0 in the for loop), as
done elsewhere in this function.

[mchehab@s-opensource.com: remove a now uneeded set for err = -ENODEV]
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 017f4fb7
...@@ -1769,7 +1769,6 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv) ...@@ -1769,7 +1769,6 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv)
if (err) if (err)
goto fail_core; goto fail_core;
err = -ENODEV;
for (i = 1; i <= core->board.num_frontends; i++) { for (i = 1; i <= core->board.num_frontends; i++) {
struct vb2_queue *q; struct vb2_queue *q;
...@@ -1777,6 +1776,7 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv) ...@@ -1777,6 +1776,7 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv)
if (fe == NULL) { if (fe == NULL) {
printk(KERN_ERR "%s() failed to get frontend(%d)\n", printk(KERN_ERR "%s() failed to get frontend(%d)\n",
__func__, i); __func__, i);
err = -ENODEV;
goto fail_probe; goto fail_probe;
} }
q = &fe->dvb.dvbq; q = &fe->dvb.dvbq;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册