diff options
author | Szymon Janc <szymon@janc.net.pl> | 2012-02-12 07:55:35 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-29 10:48:31 -0500 |
commit | 95b23582d796305c66952188de2f5159b28be766 (patch) | |
tree | 2f227289ab4ef0dafa76eb690b0bc39c767807f8 /net/bluetooth | |
parent | 426c189a1b34c0d36d5eddbe1c35bc961b1a1b68 (diff) |
Bluetooth: Use NULL instead of integer for mgmt_device_connected param
Last param of mgmt_device_connected is of pointer type, so use NULL
instead of 0 for it. This fix following sparse warning:
CHECK net/bluetooth/hci_event.c
net/bluetooth/hci_event.c:3262:74: warning: Using plain integer as NULL pointer
Signed-off-by: Szymon Janc <szymon@janc.net.pl>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 8c3261db7611..746f7d372258 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -3296,7 +3296,7 @@ static inline void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff | |||
3296 | 3296 | ||
3297 | if (!test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) | 3297 | if (!test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) |
3298 | mgmt_device_connected(hdev, &ev->bdaddr, conn->type, | 3298 | mgmt_device_connected(hdev, &ev->bdaddr, conn->type, |
3299 | conn->dst_type, 0, NULL, 0, 0); | 3299 | conn->dst_type, 0, NULL, 0, NULL); |
3300 | 3300 | ||
3301 | conn->sec_level = BT_SECURITY_LOW; | 3301 | conn->sec_level = BT_SECURITY_LOW; |
3302 | conn->handle = __le16_to_cpu(ev->handle); | 3302 | conn->handle = __le16_to_cpu(ev->handle); |