aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-01-25 15:05:19 +0100
committerBartosz Golaszewski <[email protected]>2024-02-12 10:51:23 +0100
commitc5cf334dcc78185da08b1f5df2d754cc7bf02669 (patch)
tree49d53d3c513234c9aebcccdb0a84ce1aec31243d /net/lapb/lapb_subr.c
parent6c82e737ab21c82982eaf5591b07268927a085d1 (diff)
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions