Skip to content

Commit 57dde18

Browse files
rolanddgregkh
authored andcommitted
CDC-NCM: remove "connected" log message
[ Upstream commit 59b4a8f ] The cdc_ncm driver passes network connection notifications up to usbnet_link_change(), which is the right place for any logging. Remove the netdev_info() duplicating this from the driver itself. This stops devices such as my "TRENDnet USB 10/100/1G/2.5G LAN" (ID 20f4:e02b) adapter from spamming the kernel log with cdc_ncm 2-2:2.0 enp0s2u2c2: network connection: connected messages every 60 msec or so. Signed-off-by: Roland Dreier <roland@kernel.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20201224032116.2453938-1-roland@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 143143f commit 57dde18

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/net/usb/cdc_ncm.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,9 +1863,6 @@ static void cdc_ncm_status(struct usbnet *dev, struct urb *urb)
18631863
* USB_CDC_NOTIFY_NETWORK_CONNECTION notification shall be
18641864
* sent by device after USB_CDC_NOTIFY_SPEED_CHANGE.
18651865
*/
1866-
netif_info(dev, link, dev->net,
1867-
"network connection: %sconnected\n",
1868-
!!event->wValue ? "" : "dis");
18691866
usbnet_link_change(dev, !!event->wValue, 0);
18701867
break;
18711868

0 commit comments

Comments
 (0)