diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-07 02:55:48 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-07 03:19:18 -0400 |
commit | 445608d078bf7f7fe975792a940ffac83f495fa9 (patch) | |
tree | 8806009b3882c5cc55af480d24b102db488a7dfe /net/bluetooth/mgmt.c | |
parent | 7892924c7d5d74be8ad52316000a78fe96379044 (diff) |
Bluetooth: Make mgmt_connect_failed() return void
The return value of mgmt_connect_failed() function is not used
so change it to just return void.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index a35f28e9172e..bd32c430cdfe 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -4165,8 +4165,8 @@ void mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, | |||
4165 | mgmt_pending_remove(cmd); | 4165 | mgmt_pending_remove(cmd); |
4166 | } | 4166 | } |
4167 | 4167 | ||
4168 | int mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, | 4168 | void mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, |
4169 | u8 addr_type, u8 status) | 4169 | u8 addr_type, u8 status) |
4170 | { | 4170 | { |
4171 | struct mgmt_ev_connect_failed ev; | 4171 | struct mgmt_ev_connect_failed ev; |
4172 | 4172 | ||
@@ -4174,7 +4174,7 @@ int mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, | |||
4174 | ev.addr.type = link_to_bdaddr(link_type, addr_type); | 4174 | ev.addr.type = link_to_bdaddr(link_type, addr_type); |
4175 | ev.status = mgmt_status(status); | 4175 | ev.status = mgmt_status(status); |
4176 | 4176 | ||
4177 | return mgmt_event(MGMT_EV_CONNECT_FAILED, hdev, &ev, sizeof(ev), NULL); | 4177 | mgmt_event(MGMT_EV_CONNECT_FAILED, hdev, &ev, sizeof(ev), NULL); |
4178 | } | 4178 | } |
4179 | 4179 | ||
4180 | int mgmt_pin_code_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 secure) | 4180 | int mgmt_pin_code_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 secure) |