linux/drivers/staging/media
Thaissa Falbo c3397c1b06 staging: media: davinci_vpfe: remove ret variable in switch statements
Remove ret variable in functions that used it to determine the return.
Simplified the return logic for these functions.

Found with Coccinelle script:

@@
local idexpression ret;
expression c,d;
identifier label;
@@

switch ( ... ) {
case label :
...
- ret = c;
- break;
+ return c;
...
default:
...
- ret = d;
+ return d;
...
}
... when != ret
- return ret;

@@
type T; identifier i;
@@
- T i;
... when != i

Signed-off-by: Thaissa Falbo <thaissa.falbo@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-20 14:56:47 -08:00
..
bcm2048 Staging patches for 4.5-rc1 2016-01-13 10:13:36 -08:00
cxd2099 staging: Remove <linux/moduleparam.h> header. 2015-03-01 17:09:52 -08:00
davinci_vpfe staging: media: davinci_vpfe: remove ret variable in switch statements 2016-02-20 14:56:47 -08:00
lirc [media] staging: media: lirc: Replace timeval with ktime_t in lirc_parallel.c 2015-12-03 16:21:58 -02:00
mn88472 staging: media: Remove unneeded parentheses 2016-02-11 20:05:35 -08:00
mn88473 staging: media: Remove unneeded parentheses 2016-02-11 20:05:35 -08:00
omap4iss [media] staging: v4l: omap4iss: Use the new media graph walk interface 2016-01-11 12:19:21 -02:00
Kconfig [media] dt3155: move out of staging into drivers/media/pci 2015-05-01 08:25:41 -03:00
Makefile [media] dt3155: move out of staging into drivers/media/pci 2015-05-01 08:25:41 -03:00