diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-10 05:22:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 13:13:44 +0200 |
commit | 020e03b78312ab0df1fd3c4ea62e675724cd18cf (patch) | |
tree | f9ca2feccb6b481baf1ec1e4daa3af05883dc700 /drivers/usb/misc/idmouse.c | |
parent | usb: misc: sisusbvga: compress return logic into one line (diff) | |
download | linux-020e03b78312ab0df1fd3c4ea62e675724cd18cf.tar.xz linux-020e03b78312ab0df1fd3c4ea62e675724cd18cf.zip |
usb: misc: ftdi-elan: compress return logic into one line
Simplify return logic to avoid unnecessary variable declaration
and assignment.
This issue was detected using Coccinelle and the following
semantic patch:
@@
local idexpression ret;
expression e;
@@
-ret =
+return
e;
-return ret;
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/idmouse.c')
0 files changed, 0 insertions, 0 deletions