Linux bluetooth development
 help / color / mirror / Atom feed
From: "Mutharaju, Prasanna (P.)" <mkarthi3@visteon.com>
To: "marcel@holtmann.org" <marcel@holtmann.org>,
	"gustavo@padovan.org" <gustavo@padovan.org>,
	"johan.hedberg@gmail.com" <johan.hedberg@gmail.com>,
	"davem@davemloft.net" <davem@davemloft.net>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: [PATCH] net: bluetooth: Clean up hci_core code
Date: Wed, 18 Nov 2015 12:38:41 +0000	[thread overview]
Message-ID: <20151118123816.GA3288@jci-VirtualBox> (raw)

From: Prasanna Karthik <mkarthi3@visteon.com>

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>
---
 net/bluetooth/hci_core.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 83a6aac..11bdbe0 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -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

             reply	other threads:[~2015-11-18 12:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18 12:38 Mutharaju, Prasanna (P.) [this message]
2015-11-18 12:44 ` [PATCH] net: bluetooth: Clean up hci_core code Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151118123816.GA3288@jci-VirtualBox \
    --to=mkarthi3@visteon.com \
    --cc=davem@davemloft.net \
    --cc=gustavo@padovan.org \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox