linux/drivers/staging/media
Tina Johnson 3170f3277b 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>
2014-09-19 17:39:45 -07:00
..
as102 [media] USB: as102_usb_drv.c: Remove useless return variables 2014-05-25 17:39:19 -03:00
bcm2048 [media] radio-bcm2048.c: Fix some checkpatch.pl errors 2014-07-17 20:07:05 -03:00
cxd2099 Staging: media/cxd2099: Fix line length over 80 characters 2014-03-07 13:14:14 -08:00
davinci_vpfe [media] davinci: vpfe: dm365: remove duplicate RSZ_LPF_INT_MASK 2014-07-22 00:57:22 -03:00
dt3155v4l [media] Staging: dt3155v4l: set error code on failure 2014-05-23 19:48:28 -03:00
lirc Staging: media: lirc: lirc_imon: Removed unnecessary variable to simplify return variable handling 2014-09-19 17:39:45 -07:00
omap4iss [media] staging: omap4iss: Fix type of struct iss_device::crashed 2014-07-26 15:04:09 -03:00
omap24xx Staging: dgap: Remove unnecessary variable. 2014-09-19 16:53:57 -07:00
Kconfig [media] go7007: move out of staging into drivers/media/usb. 2014-07-22 12:53:33 -03:00
Makefile [media] go7007: move out of staging into drivers/media/usb. 2014-07-22 12:53:33 -03:00