Commit de5bee27 authored by Bjørn Mork's avatar Bjørn Mork Committed by David S. Miller

net: cdc_ncm: remove unused udev field

We already use the usbnet udev field everywhere this could have
been used.

Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bed6f762
...@@ -388,8 +388,6 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_ ...@@ -388,8 +388,6 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_
buf = intf->cur_altsetting->extra; buf = intf->cur_altsetting->extra;
len = intf->cur_altsetting->extralen; len = intf->cur_altsetting->extralen;
ctx->udev = dev->udev;
/* parse through descriptors associated with control interface */ /* parse through descriptors associated with control interface */
while ((len > 0) && (buf[0] > 2) && (buf[0] <= len)) { while ((len > 0) && (buf[0] > 2) && (buf[0] <= len)) {
......
...@@ -98,7 +98,6 @@ struct cdc_ncm_ctx { ...@@ -98,7 +98,6 @@ struct cdc_ncm_ctx {
const struct usb_cdc_union_desc *union_desc; const struct usb_cdc_union_desc *union_desc;
const struct usb_cdc_ether_desc *ether_desc; const struct usb_cdc_ether_desc *ether_desc;
struct usb_device *udev;
struct usb_interface *control; struct usb_interface *control;
struct usb_interface *data; struct usb_interface *data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment