提交 401bb1f7 编写于 作者: A Andrei Emeltchenko 提交者: Johan Hedberg

Bluetooth: Silent sparse warnings

Silence warnings below:

net/bluetooth/l2cap_core.c:1662:24: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:1662:27: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:1683:24: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:1683:27: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:2260:46: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:2574:33: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:2581:33: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:4556:24: warning: Using plain integer
as NULL pointer
net/bluetooth/l2cap_core.c:4556:27: warning: Using plain integer
as NULL pointer
Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 ee556f66
...@@ -1659,7 +1659,7 @@ static void l2cap_monitor_timeout(struct work_struct *work) ...@@ -1659,7 +1659,7 @@ static void l2cap_monitor_timeout(struct work_struct *work)
return; return;
} }
l2cap_tx(chan, 0, 0, L2CAP_EV_MONITOR_TO); l2cap_tx(chan, NULL, NULL, L2CAP_EV_MONITOR_TO);
l2cap_chan_unlock(chan); l2cap_chan_unlock(chan);
l2cap_chan_put(chan); l2cap_chan_put(chan);
...@@ -1680,7 +1680,7 @@ static void l2cap_retrans_timeout(struct work_struct *work) ...@@ -1680,7 +1680,7 @@ static void l2cap_retrans_timeout(struct work_struct *work)
return; return;
} }
l2cap_tx(chan, 0, 0, L2CAP_EV_RETRANS_TO); l2cap_tx(chan, NULL, NULL, L2CAP_EV_RETRANS_TO);
l2cap_chan_unlock(chan); l2cap_chan_unlock(chan);
l2cap_chan_put(chan); l2cap_chan_put(chan);
} }
...@@ -2257,7 +2257,7 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len, ...@@ -2257,7 +2257,7 @@ int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,
break; break;
if (chan->mode == L2CAP_MODE_ERTM) if (chan->mode == L2CAP_MODE_ERTM)
err = l2cap_tx(chan, 0, &seg_queue, err = l2cap_tx(chan, NULL, &seg_queue,
L2CAP_EV_DATA_REQUEST); L2CAP_EV_DATA_REQUEST);
else else
err = l2cap_streaming_send(chan, &seg_queue); err = l2cap_streaming_send(chan, &seg_queue);
...@@ -2571,14 +2571,14 @@ static void l2cap_pass_to_tx(struct l2cap_chan *chan, ...@@ -2571,14 +2571,14 @@ static void l2cap_pass_to_tx(struct l2cap_chan *chan,
struct l2cap_ctrl *control) struct l2cap_ctrl *control)
{ {
BT_DBG("chan %p, control %p", chan, control); BT_DBG("chan %p, control %p", chan, control);
l2cap_tx(chan, control, 0, L2CAP_EV_RECV_REQSEQ_AND_FBIT); l2cap_tx(chan, control, NULL, L2CAP_EV_RECV_REQSEQ_AND_FBIT);
} }
static void l2cap_pass_to_tx_fbit(struct l2cap_chan *chan, static void l2cap_pass_to_tx_fbit(struct l2cap_chan *chan,
struct l2cap_ctrl *control) struct l2cap_ctrl *control)
{ {
BT_DBG("chan %p, control %p", chan, control); BT_DBG("chan %p, control %p", chan, control);
l2cap_tx(chan, control, 0, L2CAP_EV_RECV_FBIT); l2cap_tx(chan, control, NULL, L2CAP_EV_RECV_FBIT);
} }
/* Copy frame to all raw sockets on that connection */ /* Copy frame to all raw sockets on that connection */
...@@ -4553,7 +4553,7 @@ void l2cap_chan_busy(struct l2cap_chan *chan, int busy) ...@@ -4553,7 +4553,7 @@ void l2cap_chan_busy(struct l2cap_chan *chan, int busy)
return; return;
event = busy ? L2CAP_EV_LOCAL_BUSY_DETECTED : L2CAP_EV_LOCAL_BUSY_CLEAR; event = busy ? L2CAP_EV_LOCAL_BUSY_DETECTED : L2CAP_EV_LOCAL_BUSY_CLEAR;
l2cap_tx(chan, 0, 0, event); l2cap_tx(chan, NULL, NULL, event);
} }
static int l2cap_rx_queued_iframes(struct l2cap_chan *chan) static int l2cap_rx_queued_iframes(struct l2cap_chan *chan)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册