summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorTina Johnson <tinajohnson.1234@gmail.com>2014-09-17 03:14:52 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-19 17:39:45 -0700
commit3170f3277b1809c19fe4a45914cffa0e09471973 (patch)
tree272b3a801f035edc5cbfcf888b2d54bf6f369c94 /include/linux/errqueue.h
parent8ad5360ad81a32b4e9fdc956e7c453308050a97d (diff)
Staging: media: lirc: lirc_imon: Removed unnecessary variable to simplify return variable handling
Variable rc was removed after merging its assignment statement with immediately following return statement. Variable retval is not used at all other that to return its initial value.Hence replaced retval with its initial value in the return statement and removed the variable. This patch was done using Coccinelle script and the following semantic patch was used: @rule1@ identifier ret; expression e; @@ -int ret = 0; ... when != ret ( -ret = e; +return e; -return ret; | -return ret; +return 0; ) Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions