]> git.baikalelectronics.ru Git - kernel.git/commit
[media] stk-webcam: Delete an unnecessary check before the function call "vfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Feb 2015 17:36:35 +0000 (14:36 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 17:53:27 +0000 (14:53 -0300)
commitae8767a7f94b0799bf2da89da5aaa9f95e2c8a5e
tree559b9fd213f390e00f8dad5e47368a04d597369b
parent98aea791769a7569578a8fed8e2ec6493ce57522
[media] stk-webcam: Delete an unnecessary check before the function call "vfree"

The vfree() function performs also input parameter validation.
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/media/usb/stkwebcam/stk-webcam.c