]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] stkwebcam: Fix sparse warning on undeclared symbol
authorEzequiel Garcia <elezegarcia@gmail.com>
Thu, 1 Nov 2012 11:42:00 +0000 (08:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Nov 2012 17:23:14 +0000 (15:23 -0200)
commit293d31ed32e491fa8124f8faf3ab6c9bbc425234
tree8b041a2387473b183cc50b749007296e7ca61271
parent40ad4a30299fd01ae2a7b3c76089e64517f05d3b
[media] stkwebcam: Fix sparse warning on undeclared symbol

The sparse warning is:
"drivers/media/usb/stkwebcam/stk-webcam.c:59:5:
warning: symbol 'first_init' was not declared. Should it be static?"
Declare variable 'first_init' as static and local to the function.
Found by Hans Verkuil's daily build. Tested by compilation only.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/stkwebcam/stk-webcam.c