Skip to content

Commit d3fe22f

Browse files
elfringmchehab
authored andcommitted
[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>
1 parent 9a7a848 commit d3fe22f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/media/firewire/firedtv-ci.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,5 @@ int fdtv_ca_register(struct firedtv *fdtv)
253253

254254
void fdtv_ca_release(struct firedtv *fdtv)
255255
{
256-
if (fdtv->cadev)
257-
dvb_unregister_device(fdtv->cadev);
256+
dvb_unregister_device(fdtv->cadev);
258257
}

0 commit comments

Comments
 (0)