Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c79262f3 authored by hayeswang's avatar hayeswang Committed by David S. Miller
Browse files

r8152: remove a netif_carrier_off in rtl8152_open function



After commit 90186af4 ("r8152: fix lockup when runtime PM is enabled"),
the autoresume wouldn't start the device before rtl8152_open() is finished.
Therefore, we don't have to reset the linking status before and after
autoresume. That is, one of netif_carrier_off() in rtl8152_open() could be
removed.

Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1648066
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3111,8 +3111,6 @@ static int rtl8152_open(struct net_device *netdev)
	if (res)
		goto out;

	netif_carrier_off(netdev);

	res = usb_autopm_get_interface(tp->intf);
	if (res < 0) {
		free_all_mem(tp);