net: cdc_ncm: remove set but not used variable 'ctx'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 12 Oct 2018 01:49:13 +0000 (01:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Oct 2018 16:45:36 +0000 (09:45 -0700)
commit1b8530bf6a69d5021a1f44ca30681b3914c099f3
tree6a47f6bd87bb548f09ff94d81cfa9902d6d2b788
parent96de25060d192523fa3c75110dc6348df47fa078
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 fa83dbeee558 ("net: cdc_ncm: remove redundant "disconnected" flag")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c