]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit121666e9b0c65fcadc9a15404abc9443021a90b1
tree6a47f6bd87bb548f09ff94d81cfa9902d6d2b788
parent9f8584ca6e7ae9995e425d1451da8ddc1230a83b
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 ac253a5e8fce ("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