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>
This commit is contained in:
committed by
David S. Miller
parent
916f76405f
commit
fa83dbeee5
@@ -118,7 +118,6 @@ struct cdc_ncm_ctx {
|
||||
u16 tx_ndp_modulus;
|
||||
u16 tx_seq;
|
||||
u16 rx_seq;
|
||||
u16 connected;
|
||||
u16 min_tx_pkt;
|
||||
|
||||
/* statistics */
|
||||
|
||||
Reference in New Issue
Block a user