diff options
| author | Luiz Augusto von Dentz <[email protected]> | 2021-09-16 20:10:48 +0000 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2021-09-21 08:44:52 +0000 |
| commit | 266191aa8d14b84958aaeb5e96ee4e97839e3d87 (patch) | |
| tree | 3cfbce208e8c3283c8d986839f1c5c2d6409acb6 /net/bluetooth/hci_request.c | |
| parent | Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUF (diff) | |
| download | kernel-266191aa8d14b84958aaeb5e96ee4e97839e3d87.tar.gz kernel-266191aa8d14b84958aaeb5e96ee4e97839e3d87.zip | |
Bluetooth: Fix passing NULL to PTR_ERR
Passing NULL to PTR_ERR will result in 0 (success), also since the likes of
bt_skb_sendmsg does never return NULL it is safe to replace the instances of
IS_ERR_OR_NULL with IS_ERR when checking its return.
Reported-by: Dan Carpenter <[email protected]>
Tested-by: Tedd Ho-Jeong An <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
