lkml.org 
[lkml]   [2011]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 71/77] Staging: hv: netvsc: Cleanup error returns in rndis_filter_init_device()
    Date
    Use standard Linux error codes.

    Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
    Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
    ---
    drivers/staging/hv/rndis_filter.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c
    index f5f3052..a71f29d 100644
    --- a/drivers/staging/hv/rndis_filter.c
    +++ b/drivers/staging/hv/rndis_filter.c
    @@ -562,7 +562,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
    request = get_rndis_request(dev, REMOTE_NDIS_INITIALIZE_MSG,
    RNDIS_MESSAGE_SIZE(struct rndis_initialize_request));
    if (!request) {
    - ret = -1;
    + ret = -ENOMEM;
    goto Cleanup;
    }

    @@ -596,7 +596,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
    ret = 0;
    } else {
    dev->state = RNDIS_DEV_UNINITIALIZED;
    - ret = -1;
    + ret = -EINVAL;
    }

    Cleanup:
    --
    1.7.4.1


    \
     
     \ /
      Last update: 2011-06-16 22:11    [W:0.018 / U:14.144 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site