diff options
author | 2024-01-24 21:22:19 +0100 | |
---|---|---|
committer | 2024-02-12 10:51:20 +0100 | |
commit | 6c82e737ab21c82982eaf5591b07268927a085d1 (patch) | |
tree | c4d8e88e20ad3611a9c8d756ea10341d0e6e8201 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: don't dereference gdev->chip in gpiochip_setup_dev() (diff) | |
download | wireguard-linux-6c82e737ab21c82982eaf5591b07268927a085d1.tar.xz wireguard-linux-6c82e737ab21c82982eaf5591b07268927a085d1.zip |
gpio: reduce the functionality of validate_desc()
Checking desc->gdev->chip for NULL without holding it in place with some
serializing mechanism is pointless. Remove this check. Also don't check
desc->gdev for NULL as it can never happen. We'll be protecting
gdev->chip with SRCU soon but we will provide a dedicated, automatic
class for that.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions