Skip to content

Commit

Permalink
can: ucan: ucan_disconnect(): change unregister_netdev() to unregiste…
Browse files Browse the repository at this point in the history
…r_candev()

From API pairing, change unregister_netdev() to unregister_candev()
since the registration function is register_candev(). Actually, they
are the same.

Signed-off-by: Dongliang Mu <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
[mkl: adjust subject + commit message]
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
mudongliang authored and marckleinebudde committed Oct 26, 2022
1 parent 4aeb918 commit aa9832e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/usb/ucan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ static void ucan_disconnect(struct usb_interface *intf)
usb_set_intfdata(intf, NULL);

if (up) {
unregister_netdev(up->netdev);
unregister_candev(up->netdev);
free_candev(up->netdev);
}
}
Expand Down

0 comments on commit aa9832e

Please sign in to comment.