diff options
author | 2020-11-09 17:34:09 +0100 | |
---|---|---|
committer | 2020-11-19 12:50:12 +0100 | |
commit | 1bfc485b73579bff5326ac481fd9be7e24a5d5d1 (patch) | |
tree | 33230dec2dfa16ee83a368376fe44e219d25c6b6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rtc: rework rtc_register_device() resource management (diff) | |
download | wireguard-linux-1bfc485b73579bff5326ac481fd9be7e24a5d5d1.tar.xz wireguard-linux-1bfc485b73579bff5326ac481fd9be7e24a5d5d1.zip |
rtc: shrink devm_rtc_allocate_device()
We don't need to use devres_alloc() & devres_add() manually if all we
want to manage is a single pointer. We can shrink the code by using
devm_add_action_or_reset() instead. The number of allocations stays
the same.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201109163409.24301-9-brgl@bgdev.pl
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions