You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Bluetooth: Remove err parameter from alloc_skb()
Use ERR_PTR maginc instead. Signed-off-by: Gustavo Padovan <gustavo@padovan.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
@@ -927,12 +927,16 @@ static void l2cap_sock_state_change_cb(void *data, int state)
|
||||
}
|
||||
|
||||
static struct sk_buff *l2cap_sock_alloc_skb_cb(struct l2cap_chan *chan,
|
||||
unsigned long len, int nb,
|
||||
int *err)
|
||||
unsigned long len, int nb)
|
||||
{
|
||||
struct sock *sk = chan->sk;
|
||||
struct sk_buff *skb;
|
||||
int err;
|
||||
|
||||
return bt_skb_send_alloc(sk, len, nb, err);
|
||||
skb = bt_skb_send_alloc(chan->sk, len, nb, &err);
|
||||
if (!skb)
|
||||
return ERR_PTR(err);
|
||||
|
||||
return skb;
|
||||
}
|
||||
|
||||
static struct l2cap_ops l2cap_chan_ops = {
|
||||
|
||||
Reference in New Issue
Block a user