lkml.org 
[lkml]   [2013]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 3/5] net/usb/r815x: change the return value for bind functions
    Date
    Replace 0 with the result from usbnet_cdc_bind().

    Signed-off-by: Hayes Wang <hayeswang@realtek.com>
    ---
    drivers/net/usb/r815x.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/net/usb/r815x.c b/drivers/net/usb/r815x.c
    index 1a80e76..2df2f4f 100644
    --- a/drivers/net/usb/r815x.c
    +++ b/drivers/net/usb/r815x.c
    @@ -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)
    @@ -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 = {
    --
    1.8.3.1


    \
     
     \ /
      Last update: 2013-07-31 11:41    [W:2.371 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site