Bluetooth: Remove trailing semicolon in macros
authorMeng Yu <yumeng18@huawei.com>
Tue, 23 Mar 2021 06:22:56 +0000 (14:22 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 23 Mar 2021 15:05:35 +0000 (16:05 +0100)
remove trailing semicolon in macros and coding style fix.

Signed-off-by: Meng Yu <yumeng18@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c

index efc19f98b959ae8ed128a021505ebbe5b65f2807..2def90668173d036115b0dfd5245b9425481a516 100644 (file)
@@ -54,7 +54,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)
 
@@ -398,7 +398,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;
 }