Skip to contentSkip to conversation

net: bluetooth: Clean up hci_core code

PATCH In review Mutharaju, Prasanna (P.) 2 participants 2 messages Nov 18, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: bluetooth: Clean up hci_core code

From: Prasanna Karthik <[email protected]>

Fix errors reported by checkpatch.
- ERROR: spaces required around that ':' (ctx:VxW)
- ERROR: open brace '{' following function declarations go on the next line

---
 net/bluetooth/hci_core.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
net/bluetooth/hci_core.c +0 -0
index 83a6aac..11bdbe0 100644
@@ -73,7 +73,7 @@ static ssize_t dut_mode_read(struct file *file, char __us=

er *user_buf,
struct hci_dev *hdev =3D file->private_data;
char buf[3];
=20
- buf[0] =3D hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y': 'N';
+ buf[0] =3D hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N';
buf[1] =3D '\n';
buf[2] =3D '\0';
return simple_read_from_buffer(user_buf, count, ppos, buf, 2);
@@ -133,7 +133,7 @@ static ssize_t vendor_diag_read(struct file *file, char=
__user *user_buf,
struct hci_dev *hdev =3D file->private_data;
char buf[3];
=20
- buf[0] =3D hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y': 'N';
+ buf[0] =3D hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N';
buf[1] =3D '\n';
buf[2] =3D '\0';
return simple_read_from_buffer(user_buf, count, ppos, buf, 2);
@@ -2726,7 +2726,8 @@ struct adv_info *hci_find_adv_instance(struct hci_dev=
*hdev, u8 instance)
}
=20
/* This function requires the caller holds hdev->lock */
-struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance) = {
+struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance) +{
struct adv_info *cur_instance;
=20
cur_instance =3D hci_find_adv_instance(hdev, instance);
--=20
1.9.1

maintainer
#1 lore raw

Hi Prasanna,

Quoted 8 lines

Fix errors reported by checkpatch.
- ERROR: spaces required around that ':' (ctx:VxW)
- ERROR: open brace '{' following function declarations go on the next line

---
net/bluetooth/hci_core.c | 7 ++++---

1 file changed, 4 insertions(+), 3 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel