Skip to content

Commit

Permalink
Bluetooth: Remove trailing semicolon in macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Meng Yu authored and Marcel Holtmann committed Mar 23, 2021
1 parent 3af70b3 commit c29fb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit c29fb5f

Please sign in to comment.