diff options
author | Devendra Naga | 2012-09-09 15:11:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-09-11 00:42:52 +0200 |
commit | 102db1fc4a87668d0021395e6f7af996cf0c78d5 (patch) | |
tree | 99ce8ad0a83d50c20573a539e7ffc812fe13a891 /drivers/staging/wlan-ng/hfa384x_usb.c | |
parent | staging:wlan-ng: cleanup p80211skb_free and p80211skb_rxmeta_detach (diff) | |
download | kernel-qcow2-linux-102db1fc4a87668d0021395e6f7af996cf0c78d5.tar.gz kernel-qcow2-linux-102db1fc4a87668d0021395e6f7af996cf0c78d5.tar.xz kernel-qcow2-linux-102db1fc4a87668d0021395e6f7af996cf0c78d5.zip |
staging:wlan-ng: cleanup prism2sta_commsqual_defer and hfa384x_drvr_getconfig
the function prism2sta_commsqual_defer defines a goto done lable, which just
jumps to end of function, which we can achieve with out it
the hfa384x_drvr_getconfig doesn't need the result variable, we can
remove and just return the function
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/hfa384x_usb.c')
-rw-r--r-- | drivers/staging/wlan-ng/hfa384x_usb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index 25dd2639805c..bdc63a61c663 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -2140,11 +2140,7 @@ exit_proc: ----------------------------------------------------------------*/ int hfa384x_drvr_getconfig(hfa384x_t *hw, u16 rid, void *buf, u16 len) { - int result; - - result = hfa384x_dorrid_wait(hw, rid, buf, len); - - return result; + return hfa384x_dorrid_wait(hw, rid, buf, len); } /*---------------------------------------------------------------- |