diff options
author | 2024-01-25 15:05:19 +0100 | |
---|---|---|
committer | 2024-02-12 10:51:23 +0100 | |
commit | c5cf334dcc78185da08b1f5df2d754cc7bf02669 (patch) | |
tree | 49d53d3c513234c9aebcccdb0a84ce1aec31243d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: reduce the functionality of validate_desc() (diff) | |
download | wireguard-linux-c5cf334dcc78185da08b1f5df2d754cc7bf02669.tar.xz wireguard-linux-c5cf334dcc78185da08b1f5df2d754cc7bf02669.zip |
gpio: remove unnecessary checks from gpiod_to_chip()
We don't need to check the gdev pointer in struct gpio_desc - it's
always assigned and never cleared. It's also pointless to check
gdev->chip before we actually serialize access to it.
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