[media] gspca - jeilinj / stv06xx: Fix some warnings
authorJean-François Moine <moinejf@free.fr>
Sun, 13 Mar 2011 19:17:08 +0000 (16:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:48 +0000 (04:54 -0300)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/jeilinj.c
drivers/media/video/gspca/stv06xx/stv06xx.c

index 06b777f5379ef7c7f92198cbe53306e6387be183..36dae38b1e38cef1df2acc8c56e71845f14dfba5 100644 (file)
@@ -183,7 +183,6 @@ static void jlj_dostream(struct work_struct *work)
        struct sd *dev = container_of(work, struct sd, work_struct);
        struct gspca_dev *gspca_dev = &dev->gspca_dev;
        int blocks_left; /* 0x200-sized blocks remaining in current frame. */
-       int size_in_blocks;
        int act_len;
        int packet_type;
        int ret;
@@ -209,7 +208,6 @@ static void jlj_dostream(struct work_struct *work)
                        act_len, JEILINJ_MAX_TRANSFER);
                if (ret < 0 || act_len < FRAME_HEADER_LEN)
                        goto quit_stream;
-               size_in_blocks = buffer[0x0a];
                blocks_left = buffer[0x0a] - 1;
                PDEBUG(D_STREAM, "blocks_left = 0x%x", blocks_left);
 
index 7e06614292936b15576fbf3f669d62369fd1b025..abf1658fa33e9e4ca175e2f69a56ed9651d3e1ec 100644 (file)
@@ -525,11 +525,9 @@ static int stv06xx_config(struct gspca_dev *gspca_dev,
                          const struct usb_device_id *id)
 {
        struct sd *sd = (struct sd *) gspca_dev;
-       struct cam *cam;
 
        PDEBUG(D_PROBE, "Configuring camera");
 
-       cam = &gspca_dev->cam;
        sd->desc = sd_desc;
        sd->bridge = id->driver_info;
        gspca_dev->sd_desc = &sd->desc;