diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-24 23:22:19 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-12 12:51:20 +0300 |
commit | 6c82e737ab21c82982eaf5591b07268927a085d1 (patch) | |
tree | c4d8e88e20ad3611a9c8d756ea10341d0e6e8201 /io_uring/io_uring.h | |
parent | 7fe595b3c3cf3f9b8f21fce72f1f48a2cb41522e (diff) | |
download | linux-6c82e737ab21c82982eaf5591b07268927a085d1.tar.xz |
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 'io_uring/io_uring.h')
0 files changed, 0 insertions, 0 deletions