提交 68feaa6b 编写于 作者: M Markus Elfring 提交者: 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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 18acc6ac
...@@ -299,7 +299,6 @@ static int mn88472_init(struct dvb_frontend *fe) ...@@ -299,7 +299,6 @@ 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册