lkml.org 
[lkml]   [2016]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2/3] hostap: Delete an unnecessary jump label in prism2_ioctl_priv_hostapd()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sat, 20 Aug 2016 18:21:29 +0200

    Remove a jump label which is unneeded in this function at the end.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/net/wireless/intersil/hostap/hostap_ioctl.c | 6 ++----
    1 file changed, 2 insertions(+), 4 deletions(-)

    diff --git a/drivers/net/wireless/intersil/hostap/hostap_ioctl.c b/drivers/net/wireless/intersil/hostap/hostap_ioctl.c
    index 4e271f9..5942917 100644
    --- a/drivers/net/wireless/intersil/hostap/hostap_ioctl.c
    +++ b/drivers/net/wireless/intersil/hostap/hostap_ioctl.c
    @@ -3835,14 +3835,12 @@ static int prism2_ioctl_priv_hostapd(local_info_t *local, struct iw_point *p)
    }

    if (ret == 1 || !ap_ioctl) {
    - if (copy_to_user(p->pointer, param, p->length)) {
    + if (copy_to_user(p->pointer, param, p->length))
    ret = -EFAULT;
    - goto out;
    - } else if (ap_ioctl)
    + else if (ap_ioctl)
    ret = 0;
    }

    - out:
    kfree(param);
    return ret;
    }
    --
    2.9.3
    \
     
     \ /
      Last update: 2016-09-17 09:57    [W:4.014 / U:0.952 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site