Re: [PATCH net-next 11/11] net: cdc_ncm: remove redundant "disconnected" flag

2014-05-11 Thread Enrico Mioso (@atlantide)
-next 11/11] 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. == ==Signed-off-by: Bj?rn Mork ==--- == drivers/net/usb/cdc_ncm.c

[PATCH net-next 11/11] net: cdc_ncm: remove redundant "disconnected" flag

2014-05-10 Thread Bjørn Mork
Calling netif_carrier_{on,off} is sufficient. There is no need to duplicate the carrier state in a driver specific flag. Signed-off-by: Bjørn Mork --- drivers/net/usb/cdc_ncm.c| 19 ++- drivers/net/usb/huawei_cdc_ncm.c | 13 - include/linux/usb/cdc_ncm.h