aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorThaissa Falbo <[email protected]>2016-02-18 19:17:54 -0200
committerGreg Kroah-Hartman <[email protected]>2016-02-20 14:56:47 -0800
commitc3397c1b06b6534caaaffa39160ffe09d540a575 (patch)
treea692666fac149cdef37c68837b2c2573cb330ba7 /tools/perf/scripts
parentafa5d19a2b5fbf0bbcce34f3613bce2bc9479bb7 (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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions