Skip to content

Commit

Permalink
net/usb/r815x: change the return value for bind functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hayeswang authored and David S. Miller committed Jul 31, 2013
1 parent b771721 commit 543ae7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/usb/r815x.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int r8153_bind(struct usbnet *dev, struct usb_interface *intf)
dev->mii.phy_id = R815x_PHY_ID;
dev->mii.supports_gmii = 1;

return 0;
return status;
}

static int r8152_bind(struct usbnet *dev, struct usb_interface *intf)
Expand All @@ -191,7 +191,7 @@ static int r8152_bind(struct usbnet *dev, struct usb_interface *intf)
dev->mii.phy_id = R815x_PHY_ID;
dev->mii.supports_gmii = 0;

return 0;
return status;
}

static const struct driver_info r8152_info = {
Expand Down

0 comments on commit 543ae7f

Please sign in to comment.