Commit 1b8530bf authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

net: cdc_ncm: remove set but not used variable 'ctx'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/usb/cdc_ncm.c: In function 'cdc_ncm_status':
drivers/net/usb/cdc_ncm.c:1603:22: warning:
 variable 'ctx' set but not used [-Wunused-but-set-variable]
  struct cdc_ncm_ctx *ctx;

It not used any more after
commit fa83dbee ("net: cdc_ncm: remove redundant "disconnected" flag")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 96de2506
...@@ -1600,11 +1600,8 @@ cdc_ncm_speed_change(struct usbnet *dev, ...@@ -1600,11 +1600,8 @@ cdc_ncm_speed_change(struct usbnet *dev,
static void cdc_ncm_status(struct usbnet *dev, struct urb *urb) static void cdc_ncm_status(struct usbnet *dev, struct urb *urb)
{ {
struct cdc_ncm_ctx *ctx;
struct usb_cdc_notification *event; struct usb_cdc_notification *event;
ctx = (struct cdc_ncm_ctx *)dev->data[0];
if (urb->actual_length < sizeof(*event)) if (urb->actual_length < sizeof(*event))
return; return;
......
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