mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
[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 0d3ab8410d
('[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>
This commit is contained in:
parent
e3e8d37e53
commit
f91e5c0c5f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user