summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-07-20 14:23:49 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-21 17:11:10 -0700
commit6f43f6169a8229bb6ddbf483d3be760d48c4cdd1 (patch)
treed87a82baef33a7c01c7a2da3c9b83b00a490f873 /include/net/bluetooth
parent6ad353dfc8ee3230a5e123c21da50f1b64cc4b39 (diff)
downloadlinux-stable-6f43f6169a8229bb6ddbf483d3be760d48c4cdd1.tar.gz
linux-stable-6f43f6169a8229bb6ddbf483d3be760d48c4cdd1.tar.bz2
linux-stable-6f43f6169a8229bb6ddbf483d3be760d48c4cdd1.zip
Bluetooth: clean up error pointer checking
The bt_skb_sendmsg() function can't return NULL so there is no need to check for that. Several of these checks were removed previously but this one was missed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/bluetooth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 6b48d9e2aab9..a8b52175af05 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -494,7 +494,7 @@ static inline struct sk_buff *bt_skb_sendmmsg(struct sock *sk,
struct sk_buff *skb, **frag;
skb = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom);
- if (IS_ERR_OR_NULL(skb))
+ if (IS_ERR(skb))
return skb;
len -= skb->len;