aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorMeng Yu <yumeng18@huawei.com>2021-03-23 14:22:56 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-03-23 16:05:35 +0100
commitc29fb5f65072b784717ca16d6f136461d2ee04c4 (patch)
tree90f9b206db7a0e852f5bb3c25d414c94b9479b4f /net/bluetooth/smp.c
parentBluetooth: check for zapped sk before connecting (diff)
downloadlinux-dev-c29fb5f65072b784717ca16d6f136461d2ee04c4.tar.xz
linux-dev-c29fb5f65072b784717ca16d6f136461d2ee04c4.zip
Bluetooth: Remove trailing semicolon in macros
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>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r--net/bluetooth/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c
index efc19f98b959..2def90668173 100644
--- a/net/bluetooth/smp.c
+++ b/net/bluetooth/smp.c
@@ -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;
}