[media] stk1160: Remove unused 'ifnum' variable
authorEzequiel García <elezegarcia@gmail.com>
Thu, 23 Aug 2012 19:32:57 +0000 (16:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 15 Sep 2012 14:49:14 +0000 (11:49 -0300)
Since ifnum is not used anywhere it is safe to remove it.
This was spotted by Hans's media_tree daily build.

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

index 74236fd3b7eccee2cd431b62e826db5e3bd57e98..b62740846061d583bfed4d5c56365c7fb89586c9 100644 (file)
@@ -256,14 +256,12 @@ static int stk1160_scan_usb(struct usb_interface *intf, struct usb_device *udev,
 static int stk1160_probe(struct usb_interface *interface,
                const struct usb_device_id *id)
 {
-       int ifnum;
        int rc = 0;
 
        unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */
        struct usb_device *udev;
        struct stk1160 *dev;
 
-       ifnum = interface->altsetting[0].desc.bInterfaceNumber;
        udev = interface_to_usbdev(interface);
 
        /*