net: cdc_ncm: remove unused udev field
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:43 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:02:02 +0000 (02:02 -0400)
We already use the usbnet udev field everywhere this could have
been used.

Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c
include/linux/usb/cdc_ncm.h

index e39e7678a7989d0e523e22672260a1a145f74b27..9cdd762916dc4b56f6263ad2fbad45d05b124b0c 100644 (file)
@@ -388,8 +388,6 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_
        buf = intf->cur_altsetting->extra;
        len = intf->cur_altsetting->extralen;
 
-       ctx->udev = dev->udev;
-
        /* parse through descriptors associated with control interface */
        while ((len > 0) && (buf[0] > 2) && (buf[0] <= len)) {
 
index 5c47bd9620d5577a8557e87173f5051593a8c439..059dcc93c4d8b697c59de055a4f6aa17d88795d3 100644 (file)
@@ -98,7 +98,6 @@ struct cdc_ncm_ctx {
        const struct usb_cdc_union_desc *union_desc;
        const struct usb_cdc_ether_desc *ether_desc;
 
-       struct usb_device *udev;
        struct usb_interface *control;
        struct usb_interface *data;