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: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
committed by
Johan Hedberg
parent
c8462ca65f
commit
f1560463eb
@@ -127,8 +127,8 @@ static int smp_c1(struct crypto_blkcipher *tfm, u8 k[16], u8 r[16],
|
||||
return err;
|
||||
}
|
||||
|
||||
static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16],
|
||||
u8 r1[16], u8 r2[16], u8 _r[16])
|
||||
static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], u8 r1[16],
|
||||
u8 r2[16], u8 _r[16])
|
||||
{
|
||||
int err;
|
||||
|
||||
@@ -215,8 +215,7 @@ static __u8 seclevel_to_authreq(__u8 sec_level)
|
||||
|
||||
static void build_pairing_cmd(struct l2cap_conn *conn,
|
||||
struct smp_cmd_pairing *req,
|
||||
struct smp_cmd_pairing *rsp,
|
||||
__u8 authreq)
|
||||
struct smp_cmd_pairing *rsp, __u8 authreq)
|
||||
{
|
||||
u8 dist_keys = 0;
|
||||
|
||||
@@ -498,7 +497,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
|
||||
{
|
||||
struct smp_chan *smp;
|
||||
|
||||
smp = kzalloc(sizeof(struct smp_chan), GFP_ATOMIC);
|
||||
smp = kzalloc(sizeof(*smp), GFP_ATOMIC);
|
||||
if (!smp)
|
||||
return NULL;
|
||||
|
||||
@@ -732,8 +731,8 @@ static u8 smp_ltk_encrypt(struct l2cap_conn *conn, u8 sec_level)
|
||||
hcon->enc_key_size = key->enc_size;
|
||||
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
|
||||
{
|
||||
struct smp_cmd_security_req *rp = (void *) skb->data;
|
||||
|
Reference in New Issue
Block a user