Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usbnet: mcs7830: apply usbnet_link_change

This patch uses the introduced usbnet_link_change() to handle
link change.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ming Lei and committed by
David S. Miller
4be74c13 f24ba7bc

+1 -4
+1 -4
drivers/net/usb/mcs7830.c
··· 576 576 */ 577 577 if (data->link_counter > 20) { 578 578 data->link_counter = 0; 579 - if (link) 580 - netif_carrier_on(dev->net); 581 - else 582 - netif_carrier_off(dev->net); 579 + usbnet_link_change(dev, link, 0); 583 580 netdev_dbg(dev->net, "Link Status is: %d\n", link); 584 581 } 585 582 } else