summaryrefslogtreecommitdiffstats
path: root/drivers/media/firewire
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-20 10:49:07 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-25 16:30:31 +0100
commitd3fe22fab76ef71da78971dddab7545f5591e2d8 (patch)
treebb8822d8f7023bc436f6da995df8c20c2c67682a /drivers/media/firewire
parent[media] exynos4-is: fix error handling of irq_of_parse_and_map (diff)
downloadlinux-d3fe22fab76ef71da78971dddab7545f5591e2d8.tar.xz
linux-d3fe22fab76ef71da78971dddab7545f5591e2d8.zip
[media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device"
The dvb_unregister_device() 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> Reviewed-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/firewire')
-rw-r--r--drivers/media/firewire/firedtv-ci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/firewire/firedtv-ci.c b/drivers/media/firewire/firedtv-ci.c
index e5ebdbfe8c19..e63f582378bf 100644
--- a/drivers/media/firewire/firedtv-ci.c
+++ b/drivers/media/firewire/firedtv-ci.c
@@ -253,6 +253,5 @@ int fdtv_ca_register(struct firedtv *fdtv)
void fdtv_ca_release(struct firedtv *fdtv)
{
- if (fdtv->cadev)
- dvb_unregister_device(fdtv->cadev);
+ dvb_unregister_device(fdtv->cadev);
}