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

[media] mn88473: Remove uneeded check 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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent e8379ecf
...@@ -262,8 +262,7 @@ static int mn88473_init(struct dvb_frontend *fe) ...@@ -262,8 +262,7 @@ static int mn88473_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