Commit f4353ee3 authored by Rehas Sachdeva's avatar Rehas Sachdeva Committed by Greg Kroah-Hartman

staging: wlan-ng: Remove unnecessary variable usage

Instead of storing the return value into a variable and then returning it, we
can club the two into a single return statement. This change was made using
the following semantic patch by Coccinelle:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;
Signed-off-by: default avatarRehas Sachdeva <aquannie@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 520a2844
......@@ -685,9 +685,7 @@ int prism2mgmt_start(struct wlandevice *wlandev, void *msgp)
msg->resultcode.data = P80211ENUM_resultcode_invalid_parameters;
done:
result = 0;
return result;
return 0;
}
/*----------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment