]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: Remove unnecessary return variable
authorSumera Priyadarsini <sylphrenadin@gmail.com>
Sun, 26 Jul 2020 13:07:20 +0000 (18:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Jul 2020 08:17:30 +0000 (10:17 +0200)
commit1089ef121cd4483e9dcc4617e6a961a46e5bdad9
tree23a2967d5111124a43d687deaadbffffe0b9db3c
parent49a3bbe241cc0ce4d88b15a023e752ef5a51a508
staging: wfx: Remove unnecessary return variable

Remove redundant variable in file fwio.c used for returning value.

Issue was found using Coccinelle:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Link: https://lore.kernel.org/r/20200726130720.12993-1-sylphrenadin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/fwio.c