diff mbox series

Bluetooth: Remove trailing semicolon in macros

Message ID 1616224773-41847-1-git-send-email-yumeng18@huawei.com
State Accepted
Commit c29fb5f65072b784717ca16d6f136461d2ee04c4
Headers show
Series Bluetooth: Remove trailing semicolon in macros | expand

Commit Message

yumeng March 20, 2021, 7:19 a.m. UTC
1. remove trailing semicolon in macros;
2. fix some coding style.

Signed-off-by: Meng Yu <yumeng18@huawei.com>
---
 net/bluetooth/smp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Marcel Holtmann March 22, 2021, 4:06 p.m. UTC | #1
Hi Meng,

> 1. remove trailing semicolon in macros;

> 2. fix some coding style.

> 

> Signed-off-by: Meng Yu <yumeng18@huawei.com>

> ---

> net/bluetooth/smp.c | 6 +++---

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


the patch doesn’t apply to bluetooth-next, please re-base and send again.

Regards

Marcel
diff mbox series

Patch

diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index 26e8cfad..07a193e 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -55,7 +55,7 @@ 
 #define SMP_ALLOW_CMD(smp, code)	set_bit(code, &smp->allow_cmd)
 
 /* Keys which are not distributed with Secure Connections */
-#define SMP_SC_NO_DIST (SMP_DIST_ENC_KEY | SMP_DIST_LINK_KEY);
+#define SMP_SC_NO_DIST (SMP_DIST_ENC_KEY | SMP_DIST_LINK_KEY)
 
 #define SMP_TIMEOUT	msecs_to_jiffies(30000)
 
@@ -403,7 +403,7 @@  static int smp_e(const u8 *k, u8 *r)
 
 	SMP_DBG("r %16phN", r);
 
-	memzero_explicit(&ctx, sizeof (ctx));
+	memzero_explicit(&ctx, sizeof(ctx));
 	return err;
 }
 
@@ -866,7 +866,7 @@  static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
 	memset(smp->tk, 0, sizeof(smp->tk));
 	clear_bit(SMP_FLAG_TK_VALID, &smp->flags);
 
-	BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io);
+	BT_DBG("%s: auth:%d lcl:%d rem:%d", __func__, auth, local_io, remote_io);
 
 	/* If neither side wants MITM, either "just" confirm an incoming
 	 * request or use just-works for outgoing ones. The JUST_CFM