]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] em28xx: clean-up several unused parametrs in struct em28xx_usb_isoc_ctl
authorGianluca Gennari <gennarone@gmail.com>
Thu, 22 Mar 2012 14:13:55 +0000 (11:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Apr 2012 18:47:45 +0000 (15:47 -0300)
Get rid of several unused parameters in struct em28xx_usb_isoc_ctl.

Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-core.c
drivers/media/video/em28xx/em28xx.h

index cbbe399bc77f1f827d42fd53fcd82135a1a72aac..fd54c807cf29d9117cfcc4e12c134c4bc7d1016f 100644 (file)
@@ -974,7 +974,6 @@ void em28xx_uninit_isoc(struct em28xx *dev, enum em28xx_mode mode)
        else
                isoc_bufs = &dev->isoc_ctl.analog_bufs;
 
-       dev->isoc_ctl.nfields = -1;
        for (i = 0; i < isoc_bufs->num_bufs; i++) {
                urb = isoc_bufs->urb[i];
                if (urb) {
index 286b9f8b0022d5372217b4faede4005899d1e038..c2a5a99398b069eba132950a735fa64d2121a1c9 100644 (file)
@@ -226,24 +226,10 @@ struct em28xx_usb_isoc_ctl {
                /* isoc transfer buffers for digital mode */
        struct em28xx_usb_isoc_bufs     digital_bufs;
 
-               /* Last buffer command and region */
-       u8                              cmd;
-       int                             pos, size, pktsize;
-
-               /* Last field: ODD or EVEN? */
-       int                             field;
-
-               /* Stores incomplete commands */
-       u32                             tmp_buf;
-       int                             tmp_buf_len;
-
                /* Stores already requested buffers */
        struct em28xx_buffer            *vid_buf;
        struct em28xx_buffer            *vbi_buf;
 
-               /* Stores the number of received fields */
-       int                             nfields;
-
                /* isoc urb callback */
        int (*isoc_copy) (struct em28xx *dev, struct urb *urb);