Skip to content

Commit

Permalink
net: cdc_ncm: remove unused udev field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjørn Mork authored and David S. Miller committed Nov 2, 2013
1 parent bed6f76 commit de5bee2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/usb/cdc_ncm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {

Expand Down
1 change: 0 additions & 1 deletion include/linux/usb/cdc_ncm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit de5bee2

Please sign in to comment.