[media] dvb-usb: silence an uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 27 Jun 2016 14:29:46 +0000 (11:29 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 16:13:22 +0000 (13:13 -0300)
commitf91e5c0c5f39b2a5c0f1a66462665eddd7021d83
treecdfda0b6c8bc5f5cb6c03d8fd2158d531aef77de
parente3e8d37e537ebe8a7acf639e97838e59266d0e30
[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>
drivers/media/usb/dvb-usb/dvb-usb-dvb.c