aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-06-27 11:29:46 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-13 13:13:22 -0300
commitf91e5c0c5f39b2a5c0f1a66462665eddd7021d83 (patch)
treecdfda0b6c8bc5f5cb6c03d8fd2158d531aef77de /drivers/media/usb/dvb-usb
parent[media] netup_unidvb: trivial fix of spelling mistake "initizalize" -> "initialize" (diff)
downloadlinux-dev-f91e5c0c5f39b2a5c0f1a66462665eddd7021d83.tar.xz
linux-dev-f91e5c0c5f39b2a5c0f1a66462665eddd7021d83.zip
[media] dvb-usb: silence an uninitialized variable warning
My static checker complains that if adap->props.num_frontends is 0 then "ret" is uninitialized. I don't think that can happen. But "ret" is always zero here so we can just remove the condition. This extra check was added in commit 0d3ab8410dcb ('[media] dvb core: must check dvb_create_media_graph()'). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb')
-rw-r--r--drivers/media/usb/dvb-usb/dvb-usb-dvb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/usb/dvb-usb/dvb-usb-dvb.c b/drivers/media/usb/dvb-usb/dvb-usb-dvb.c
index 6477b04e95c7..a04c0a250625 100644
--- a/drivers/media/usb/dvb-usb/dvb-usb-dvb.c
+++ b/drivers/media/usb/dvb-usb/dvb-usb-dvb.c
@@ -320,8 +320,6 @@ int dvb_usb_adapter_frontend_init(struct dvb_usb_adapter *adap)
adap->num_frontends_initialized++;
}
- if (ret)
- return ret;
ret = dvb_create_media_graph(&adap->dvb_adap, true);
if (ret)