mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 13:27:25 -04:00
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: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
520a28443f
commit
f4353ee3d3
@@ -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;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user