Skip to content

Commit

Permalink
usbnet: sierra: apply usbnet_link_change
Browse files Browse the repository at this point in the history
Use usbnet_link_change to handle link change centrally.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ming Lei authored and David S. Miller committed Apr 11, 2013
1 parent c10b171 commit 9ef2c44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/usb/sierra_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,10 @@ static void sierra_net_handle_lsi(struct usbnet *dev, char *data,
if (link_up) {
sierra_net_set_ctx_index(priv, hh->msgspecific.byte);
priv->link_up = 1;
netif_carrier_on(dev->net);
} else {
priv->link_up = 0;
netif_carrier_off(dev->net);
}
usbnet_link_change(dev, link_up, 0);
}

static void sierra_net_dosync(struct usbnet *dev)
Expand Down

0 comments on commit 9ef2c44

Please sign in to comment.