[media] V4L2: Deletion of an unnecessary check before the function call "vb2_put_vma"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 30 Nov 2014 22:10:51 +0000 (19:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 2 Dec 2014 13:33:09 +0000 (11:33 -0200)
commit7c57529baa17e14c8b5406da41a3118613fe880d
tree60fff88ad7f31371bf63f83ae6e7c12feec963b7
parent8c17e5e3b340d7b104756c01c1eac9a907c18bf6
[media] V4L2: Deletion of an unnecessary check before the function call "vb2_put_vma"

The vb2_put_vma() 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>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-vmalloc.c