aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYisheng Xie <[email protected]>2018-07-24 19:11:26 +0200
committerBartlomiej Zolnierkiewicz <[email protected]>2018-07-24 19:11:26 +0200
commit10ac86884b4d7642a235f9da61367c3f8d2ab2ff (patch)
treec75db9b97819001783ef27854b74e3920d66d2ed /tools/perf/scripts/python/export-to-postgresql.py
parent4a1208c5b46a711d7d8bb2b327ae5c2b144a8e72 (diff)
fbcon: introduce for_each_registered_fb() helper
Following pattern is often used: for (i = 0; i < FB_MAX; i++) { if (registered_fb[i]) { ... } } Therefore, as Andy's suggestion, for_each_registered_fb() helper can be introduced to make the code easier to read and write by reducing indentation level. It also saves few lines of code in each occurrence. This patch convert all part here at the same time. Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: Yisheng Xie <[email protected]> Acked-by: Hans de Goede <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Cc: Kees Cook <[email protected]> Cc: David Lechner <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions