diff options
| author | 2016-02-18 19:17:54 -0200 | |
|---|---|---|
| committer | 2016-02-20 14:56:47 -0800 | |
| commit | c3397c1b06b6534caaaffa39160ffe09d540a575 (patch) | |
| tree | a692666fac149cdef37c68837b2c2573cb330ba7 /include/linux | |
| parent | staging: media: davinci_vpfe: remove unnecessary ret variable (diff) | |
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
