From: Rehas Sachdeva Date: Mon, 19 Sep 2016 19:35:54 +0000 (+0530) Subject: staging: wlan-ng: Remove unnecessary variable usage X-Git-Tag: v4.9.8~1233^2~295 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4353ee3d3af22641beb99a146ef136f33952e80;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index 73ea127..b380c7d 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.c +++ b/drivers/staging/wlan-ng/prism2mgmt.c @@ -685,9 +685,7 @@ failed: msg->resultcode.data = P80211ENUM_resultcode_invalid_parameters; done: - result = 0; - - return result; + return 0; } /*----------------------------------------------------------------