aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2024-03-04 19:35:33 +0200
committerBartosz Golaszewski <[email protected]>2024-03-05 19:24:58 +0100
commit8ae438f5ff168cd0e3ba6e3cef7240fa5d110528 (patch)
tree62066e2aa1bf90983550f2b58109dafc385e13fb /tools/perf/scripts/python/export-to-postgresql.py
parente9c717bee8f109ec5f708297d2cc9d8b59348855 (diff)
gpiolib: Deduplicate cleanup for-loop in gpiochip_add_data_with_key()
There is no need to repeat for-loop twice in the error path in gpiochip_add_data_with_key(). Deduplicate it. While at it, rename loop variable to be more specific and avoid ambguity. It also properly unwinds the SRCU, i.e. in reversed order of allocating. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions