aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-03-04 19:35:33 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-03-05 19:24:58 +0100
commit8ae438f5ff168cd0e3ba6e3cef7240fa5d110528 (patch)
tree62066e2aa1bf90983550f2b58109dafc385e13fb /tools/perf/scripts/python/export-to-sqlite.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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions