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

net/usb/r815x: change the return value for bind functions

Replace 0 with the result from usbnet_cdc_bind().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

hayeswang and committed by
David S. Miller
543ae7f9 b771721a

+2 -2
+2 -2
drivers/net/usb/r815x.c
··· 172 172 dev->mii.phy_id = R815x_PHY_ID; 173 173 dev->mii.supports_gmii = 1; 174 174 175 - return 0; 175 + return status; 176 176 } 177 177 178 178 static int r8152_bind(struct usbnet *dev, struct usb_interface *intf) ··· 191 191 dev->mii.phy_id = R815x_PHY_ID; 192 192 dev->mii.supports_gmii = 0; 193 193 194 - return 0; 194 + return status; 195 195 } 196 196 197 197 static const struct driver_info r8152_info = {