net: cdc_ncm: remove redundant "disconnected" flag
authorBjørn Mork <[email protected]>
Fri, 16 May 2014 19:48:28 +0000 (21:48 +0200)
committerDavid S. Miller <[email protected]>
Sat, 17 May 2014 02:39:02 +0000 (22:39 -0400)
commitfa83dbeee55865678025b6c1637ca08860209f87
tree56ffa4f18336e8e9f1d1e0db7a32ccaa3cddc386
parent916f76405fe6f1ae2d0b60841343782f0575ab0a
net: cdc_ncm: remove redundant "disconnected" flag

Calling netif_carrier_{on,off} is sufficient.  There is no need
to duplicate the carrier state in a driver specific flag.

Acked-by: Enrico Mioso <[email protected]>
Signed-off-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/usb/cdc_ncm.c
drivers/net/usb/huawei_cdc_ncm.c
include/linux/usb/cdc_ncm.h