]> git.baikalelectronics.ru Git - kernel.git/commit
[media] zc3xx: remove dead code and uneeded gotos
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 22:49:07 +0000 (19:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 17:27:53 +0000 (14:27 -0300)
commitfca51bba97785a56e279fa59b5dcf9b8d291de14
tree4da5ed454306867dee4a55b9a5f3156aad438a5c
parent960b01e0da3a3ec6162319a47e2f4330aed56d22
[media] zc3xx: remove dead code and uneeded gotos

As reported by smatch:
drivers/media/usb/gspca/zc3xx.c:5994 transfer_update() info: ignoring unreachable code.

That happens because there's a return that it is never called,
as the work queue runs an infinite loop, except when the device is
put to sleep or an error happens.

When an error happens, a break statement is enough to go out of
the loop. So, let's remove the goto, as break is the typical
instruction used to end a loop.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/gspca/zc3xx.c