From: Markus Elfring Date: Thu, 20 Nov 2014 09:49:07 +0000 (-0300) Subject: [media] firewire: Deletion of an unnecessary check before the function call "dvb_unre... X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d3fe22fab76ef71da78971dddab7545f5591e2d8;p=openwrt%2Fstaging%2Fblogic.git [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 Reviewed-by: Stefan Richter Signed-off-by: Mauro Carvalho Chehab --- 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); }