diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2014-11-19 22:27:24 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-25 12:52:44 +0100 |
commit | 9bc2dd7ec0db76c7159d8124cd2bf8d1ff2a2ede (patch) | |
tree | c1633fec0d4b10f6f2efd5656a07d71bebfba8a6 /drivers/media/dvb-frontends/m88ds3103.c | |
parent | [media] lmed04: add missing breaks (diff) | |
download | linux-9bc2dd7ec0db76c7159d8124cd2bf8d1ff2a2ede.tar.xz linux-9bc2dd7ec0db76c7159d8124cd2bf8d1ff2a2ede.zip |
[media] DVB-frontends: Deletion of unnecessary checks before the function call "release_firmware"
GIT_AUTHOR_DATE=1416472432
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>
Diffstat (limited to 'drivers/media/dvb-frontends/m88ds3103.c')
-rw-r--r-- | drivers/media/dvb-frontends/m88ds3103.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/m88ds3103.c b/drivers/media/dvb-frontends/m88ds3103.c index 0cd445cfeff6..843e669a3d7c 100644 --- a/drivers/media/dvb-frontends/m88ds3103.c +++ b/drivers/media/dvb-frontends/m88ds3103.c @@ -687,8 +687,7 @@ skip_fw_download: return 0; err: - if (fw) - release_firmware(fw); + release_firmware(fw); dev_dbg(&priv->i2c->dev, "%s: failed=%d\n", __func__, ret); return ret; |