Commit f1560463 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Johan Hedberg

Bluetooth: Fix coding style violations in SMP handling

The SMP source code has a few coding style violations. Fix them up
all at once. No actual code has changed.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent c8462ca6
...@@ -127,8 +127,8 @@ static int smp_c1(struct crypto_blkcipher *tfm, u8 k[16], u8 r[16], ...@@ -127,8 +127,8 @@ static int smp_c1(struct crypto_blkcipher *tfm, u8 k[16], u8 r[16],
return err; return err;
} }
static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], u8 r1[16],
u8 r1[16], u8 r2[16], u8 _r[16]) u8 r2[16], u8 _r[16])
{ {
int err; int err;
...@@ -215,8 +215,7 @@ static __u8 seclevel_to_authreq(__u8 sec_level) ...@@ -215,8 +215,7 @@ static __u8 seclevel_to_authreq(__u8 sec_level)
static void build_pairing_cmd(struct l2cap_conn *conn, static void build_pairing_cmd(struct l2cap_conn *conn,
struct smp_cmd_pairing *req, struct smp_cmd_pairing *req,
struct smp_cmd_pairing *rsp, struct smp_cmd_pairing *rsp, __u8 authreq)
__u8 authreq)
{ {
u8 dist_keys = 0; u8 dist_keys = 0;
...@@ -498,7 +497,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) ...@@ -498,7 +497,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
{ {
struct smp_chan *smp; struct smp_chan *smp;
smp = kzalloc(sizeof(struct smp_chan), GFP_ATOMIC); smp = kzalloc(sizeof(*smp), GFP_ATOMIC);
if (!smp) if (!smp)
return NULL; return NULL;
...@@ -732,8 +731,8 @@ static u8 smp_ltk_encrypt(struct l2cap_conn *conn, u8 sec_level) ...@@ -732,8 +731,8 @@ static u8 smp_ltk_encrypt(struct l2cap_conn *conn, u8 sec_level)
hcon->enc_key_size = key->enc_size; hcon->enc_key_size = key->enc_size;
return 1; return 1;
} }
static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb) static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
{ {
struct smp_cmd_security_req *rp = (void *) skb->data; struct smp_cmd_security_req *rp = (void *) skb->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment