Commit 293d31ed authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Mauro Carvalho Chehab

[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: default avatarEzequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 40ad4a30
...@@ -54,10 +54,6 @@ MODULE_LICENSE("GPL"); ...@@ -54,10 +54,6 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Jaime Velasco Juan <jsagarribay@gmail.com> and Nicolas VIVIEN"); MODULE_AUTHOR("Jaime Velasco Juan <jsagarribay@gmail.com> and Nicolas VIVIEN");
MODULE_DESCRIPTION("Syntek DC1125 webcam driver"); MODULE_DESCRIPTION("Syntek DC1125 webcam driver");
/* bool for webcam LED management */
int first_init = 1;
/* Some cameras have audio interfaces, we aren't interested in those */ /* Some cameras have audio interfaces, we aren't interested in those */
static struct usb_device_id stkwebcam_table[] = { static struct usb_device_id stkwebcam_table[] = {
{ USB_DEVICE_AND_INTERFACE_INFO(0x174f, 0xa311, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(0x174f, 0xa311, 0xff, 0xff, 0xff) },
...@@ -554,6 +550,7 @@ static void stk_free_buffers(struct stk_camera *dev) ...@@ -554,6 +550,7 @@ static void stk_free_buffers(struct stk_camera *dev)
static int v4l_stk_open(struct file *fp) static int v4l_stk_open(struct file *fp)
{ {
static int first_init = 1; /* webcam LED management */
struct stk_camera *dev; struct stk_camera *dev;
struct video_device *vdev; struct video_device *vdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment