diff options
author | Andy Shevchenko <[email protected]> | 2024-03-04 19:35:33 +0200 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2024-03-05 19:24:58 +0100 |
commit | 8ae438f5ff168cd0e3ba6e3cef7240fa5d110528 (patch) | |
tree | 62066e2aa1bf90983550f2b58109dafc385e13fb /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | e9c717bee8f109ec5f708297d2cc9d8b59348855 (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 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions