aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMarkus Elfring <[email protected]>2015-12-27 15:23:57 -0200
committerMauro Carvalho Chehab <[email protected]>2016-01-25 15:15:38 -0200
commitc2e5c951c2d10536a9f17647f3440e5f9f639d8b (patch)
tree6cf404a6e15d8c0cc4ae3038ca97dae16d4cee90 /tools/perf/scripts/python/export-to-postgresql.py
parent2e490139b137bbac3250d594cef3dcbc461ad4cc (diff)
[media] si2165: Refactoring for si2165_writereg_mask8()
This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the si2165_readreg8() function failed. 2. Reduce the scope for the local variables "ret" and "tmp" to one branch of an if statement. 3. Delete the jump label "err" then. 4. Return the value from a call of the si2165_writereg8() function without using an extra assignment for the variable "ret" at the end. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: Matthias Schwarzott <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions