summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-01-25 15:05:19 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-02-12 10:51:23 +0100
commitc5cf334dcc78185da08b1f5df2d754cc7bf02669 (patch)
tree49d53d3c513234c9aebcccdb0a84ce1aec31243d /mm/slub.c
parent6c82e737ab21c82982eaf5591b07268927a085d1 (diff)
downloadlinux-stable-c5cf334dcc78185da08b1f5df2d754cc7bf02669.tar.gz
linux-stable-c5cf334dcc78185da08b1f5df2d754cc7bf02669.tar.bz2
linux-stable-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 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions