Browse Source

V4L/DVB: gspca - cpia1: Fix compilation warning when gspca debug disabled

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Jean-François Moine 15 years ago
parent
commit
a2efdd7b18
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/media/video/gspca/cpia1.c

+ 2 - 0
drivers/media/video/gspca/cpia1.c

@@ -1753,7 +1753,9 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
 /* this function is called at probe and resume time */
 static int sd_init(struct gspca_dev *gspca_dev)
 {
+#ifdef GSPCA_DEBUG
 	struct sd *sd = (struct sd *) gspca_dev;
+#endif
 	int ret;
 
 	/* Start / Stop the camera to make sure we are talking to