net: cdc_ncm: remove redundant "disconnected" flag
authorBjørn Mork <bjorn@mork.no>
Fri, 16 May 2014 19:48:28 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <mrkiko.rs@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c
drivers/net/usb/huawei_cdc_ncm.c
include/linux/usb/cdc_ncm.h