* [PATCH] bluetooth: Fixed checkpatch warnings
@ 2012-05-09 5:44 Cristian Chilipirea
2012-05-09 6:09 ` Gustavo Padovan
0 siblings, 1 reply; 2+ messages in thread
From: Cristian Chilipirea @ 2012-05-09 5:44 UTC (permalink / raw)
To: marcel
Cc: gustavo, johan.hedberg, linux-bluetooth, daniel.baluta,
Cristian Chilipirea
Fixed some checkpatch warnings in mgmt.c.
Signed-off-by: Cristian Chilipirea <cristian.chilipirea@gmail.com>
---
net/bluetooth/mgmt.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
mode change 100644 => 100755 net/bluetooth/mgmt.c
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
old mode 100644
new mode 100644
index 4bb03b1..494004d
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1122,8 +1122,8 @@ static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
}
if (mgmt_pending_find(MGMT_OP_SET_SSP, hdev)) {
- err = cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
- MGMT_STATUS_BUSY);
+ err = cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
+ MGMT_STATUS_BUSY);
goto failed;
}
@@ -2884,7 +2884,8 @@ int mgmt_write_scan_failed(struct hci_dev *hdev, u8 scan, u8 status)
return 0;
}
-int mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, bool persistent)
+int mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key,
+ bool persistent)
{
struct mgmt_ev_new_link_key ev;
@@ -3001,7 +3002,7 @@ int mgmt_device_disconnected(struct hci_dev *hdev, bdaddr_t *bdaddr,
sk);
if (sk)
- sock_put(sk);
+ sock_put(sk);
mgmt_pending_foreach(MGMT_OP_UNPAIR_DEVICE, hdev, unpair_device_rsp,
hdev);
@@ -3413,7 +3414,7 @@ int mgmt_le_enable_complete(struct hci_dev *hdev, u8 enable, u8 status)
if (enable && test_and_clear_bit(HCI_LE_ENABLED,
&hdev->dev_flags))
- err = new_settings(hdev, NULL);
+ err = new_settings(hdev, NULL);
mgmt_pending_foreach(MGMT_OP_SET_LE, hdev,
cmd_status_rsp, &mgmt_err);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bluetooth: Fixed checkpatch warnings
2012-05-09 5:44 [PATCH] bluetooth: Fixed checkpatch warnings Cristian Chilipirea
@ 2012-05-09 6:09 ` Gustavo Padovan
0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Padovan @ 2012-05-09 6:09 UTC (permalink / raw)
To: Cristian Chilipirea; +Cc: marcel, johan.hedberg, linux-bluetooth, daniel.baluta
[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]
Hi Cristian,
* Cristian Chilipirea <cristian.chilipirea@gmail.com> [2012-05-09 08:44:52 +0300]:
> Fixed some checkpatch warnings in mgmt.c.
>
> Signed-off-by: Cristian Chilipirea <cristian.chilipirea@gmail.com>
> ---
> net/bluetooth/mgmt.c | 11 ++++++-----
> 1 files changed, 6 insertions(+), 5 deletions(-)
> mode change 100644 => 100755 net/bluetooth/mgmt.c
>
> diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
> old mode 100644
> new mode 100644
> index 4bb03b1..494004d
> --- a/net/bluetooth/mgmt.c
> +++ b/net/bluetooth/mgmt.c
> @@ -1122,8 +1122,8 @@ static int set_ssp(struct sock *sk, struct hci_dev *hdev, void *data, u16 len)
> }
>
> if (mgmt_pending_find(MGMT_OP_SET_SSP, hdev)) {
> - err = cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
> - MGMT_STATUS_BUSY);
> + err = cmd_status(sk, hdev->id, MGMT_OP_SET_SSP,
> + MGMT_STATUS_BUSY);
> goto failed;
> }
>
> @@ -2884,7 +2884,8 @@ int mgmt_write_scan_failed(struct hci_dev *hdev, u8 scan, u8 status)
> return 0;
> }
>
> -int mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, bool persistent)
> +int mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key,
> + bool persistent)
It turns out that all your proposed fixes but this were already fixed in
bluetooth-next. I went ahead and applied only this one, patch is now upstream.
Thanks.
Gustavo
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-09 6:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 5:44 [PATCH] bluetooth: Fixed checkpatch warnings Cristian Chilipirea
2012-05-09 6:09 ` Gustavo Padovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).