diff options
author | Prasanna Karthik <mkarthi3@visteon.com> | 2015-11-18 07:38:41 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-19 11:50:33 -0500 |
commit | 74b93e9f4ee0ae9292730de1a1e7d919c59c8ad2 (patch) | |
tree | ec0e1d69a2e2ee9c693de7b7a159be361fa24b55 /net/bluetooth | |
parent | f37590bd772243db8ce47071a56c3a2b84cb282b (diff) |
Bluetooth: Clean up hci_core code
Fix errors reported by checkpatch.
- ERROR: spaces required around that ':' (ctx:VxW)
- ERROR: open brace '{' following function declarations go on the next line
Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 63fd31d7b27a..89af7e4fac02 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -64,7 +64,7 @@ static ssize_t dut_mode_read(struct file *file, char __user *user_buf, | |||
64 | struct hci_dev *hdev = file->private_data; | 64 | struct hci_dev *hdev = file->private_data; |
65 | char buf[3]; | 65 | char buf[3]; |
66 | 66 | ||
67 | buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y': 'N'; | 67 | buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; |
68 | buf[1] = '\n'; | 68 | buf[1] = '\n'; |
69 | buf[2] = '\0'; | 69 | buf[2] = '\0'; |
70 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); | 70 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); |
@@ -124,7 +124,7 @@ static ssize_t vendor_diag_read(struct file *file, char __user *user_buf, | |||
124 | struct hci_dev *hdev = file->private_data; | 124 | struct hci_dev *hdev = file->private_data; |
125 | char buf[3]; | 125 | char buf[3]; |
126 | 126 | ||
127 | buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y': 'N'; | 127 | buf[0] = hci_dev_test_flag(hdev, HCI_VENDOR_DIAG) ? 'Y' : 'N'; |
128 | buf[1] = '\n'; | 128 | buf[1] = '\n'; |
129 | buf[2] = '\0'; | 129 | buf[2] = '\0'; |
130 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); | 130 | return simple_read_from_buffer(user_buf, count, ppos, buf, 2); |
@@ -2600,7 +2600,8 @@ struct adv_info *hci_find_adv_instance(struct hci_dev *hdev, u8 instance) | |||
2600 | } | 2600 | } |
2601 | 2601 | ||
2602 | /* This function requires the caller holds hdev->lock */ | 2602 | /* This function requires the caller holds hdev->lock */ |
2603 | struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance) { | 2603 | struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance) |
2604 | { | ||
2604 | struct adv_info *cur_instance; | 2605 | struct adv_info *cur_instance; |
2605 | 2606 | ||
2606 | cur_instance = hci_find_adv_instance(hdev, instance); | 2607 | cur_instance = hci_find_adv_instance(hdev, instance); |