aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-01-24 21:22:19 +0100
committerBartosz Golaszewski <[email protected]>2024-02-12 10:51:20 +0100
commit6c82e737ab21c82982eaf5591b07268927a085d1 (patch)
treec4d8e88e20ad3611a9c8d756ea10341d0e6e8201 /net/lapb/lapb_subr.c
parent7fe595b3c3cf3f9b8f21fce72f1f48a2cb41522e (diff)
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 <[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