[media] tuners: remove uneeded checks before release_firmware()
The release_firmware() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
99d2fae9eb
commit
dc89cfcf33
@@ -1336,8 +1336,7 @@ static int xc5000_release(struct dvb_frontend *fe)
|
||||
|
||||
if (priv) {
|
||||
cancel_delayed_work(&priv->timer_sleep);
|
||||
if (priv->firmware)
|
||||
release_firmware(priv->firmware);
|
||||
release_firmware(priv->firmware);
|
||||
hybrid_tuner_release_state(priv);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user