2015-06-18 13:51:11

by Mutharaju, Prasanna (P.)

[permalink] [raw]
Subject: [PATCH] Bluetooth: bt3c_cs: Fix coding style -- clean up

From: Prasanna Karthik <[email protected]>

Fix for braces {} are not necessary for single statement blocks
reported by checkpatch

Signed-off-by: Prasanna Karthik <[email protected]>
---
drivers/bluetooth/bt3c_cs.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c
index 6de97b3..3c18233 100644
--- a/drivers/bluetooth/bt3c_cs.c
+++ b/drivers/bluetooth/bt3c_cs.c
@@ -202,9 +202,8 @@ static void bt3c_write_wakeup(struct bt3c_info *info)
/* Send frame */
len =3D bt3c_write(iobase, 256, skb->data, skb->len);
=20
- if (len !=3D skb->len) {
+ if (len !=3D skb->len)
BT_ERR("Very strange");
- }
=20
kfree_skb(skb);
=20
--=20
1.7.0.4


2015-06-18 14:07:10

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Bluetooth: bt3c_cs: Fix coding style -- clean up

Hi Prasanna,

> Fix for braces {} are not necessary for single statement blocks
> reported by checkpatch
>
> Signed-off-by: Prasanna Karthik <[email protected]>
> ---
> drivers/bluetooth/bt3c_cs.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel