]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] staging: bcm2048: Delete an unnecessary check before the function call "video...
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 2 Feb 2015 12:20:23 +0000 (09:20 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 15:34:46 +0000 (13:34 -0200)
commita1408379ba9d87d66691835c7cdc2645793e311a
treedd12f993e69c704bdcf22811797dd079de1b3895
parent47e604c5ddf128b5102cfd5d88cd5e2f243e1c2f
[media] staging: bcm2048: Delete an unnecessary check before the function call "video_unregister_device"

The video_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>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/bcm2048/radio-bcm2048.c