aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-02-08 17:40:17 +0100
committerLuiz Augusto von Dentz <[email protected]>2024-03-06 17:25:34 -0500
commit56d074d26c5828773b00b2185dd7e1d08273b8e8 (patch)
tree3787c6502abc558e263f12ef8b1c8381ee2b1930 /net/lapb/lapb_out.c
parenta7ba218a44aa3baa7acd411da91593c4bcafdca9 (diff)
Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
The optional variants for the gpiod_get() family of functions return NULL if the GPIO in question is not associated with this device. They return ERR_PTR() on any other error. NULL descriptors are graciously handled by GPIOLIB and can be safely passed to any of the GPIO consumer interfaces as they will return 0 and act as if the function succeeded. If one is using the optional variant, then there's no point in checking for NULL. Fixes: 6845667146a2 ("Bluetooth: hci_qca: Fix NULL vs IS_ERR_OR_NULL check in qca_serdev_probe") Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions