Commit 68feaa6b authored by Markus Elfring's avatar Markus Elfring Committed by Mauro Carvalho Chehab

[media] mn88472: Deletion of an unnecessary check before the function call "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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 18acc6ac
...@@ -299,8 +299,7 @@ static int mn88472_init(struct dvb_frontend *fe) ...@@ -299,8 +299,7 @@ static int mn88472_init(struct dvb_frontend *fe)
return 0; return 0;
err: err:
if (fw) release_firmware(fw);
release_firmware(fw);
dev_dbg(&client->dev, "failed=%d\n", ret); dev_dbg(&client->dev, "failed=%d\n", ret);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment