staging: wlan-ng: Remove unnecessary variable usage
authorRehas Sachdeva <aquannie@gmail.com>
Mon, 19 Sep 2016 19:35:54 +0000 (01:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:59:45 +0000 (13:59 +0200)
commitf4353ee3d3af22641beb99a146ef136f33952e80
treed1ce8a4c24d73a98cbf26693241b8aaaf846e255
parent520a28443fb2f28a663053feb4431c0083268d75
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>
drivers/staging/wlan-ng/prism2mgmt.c