mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Bluetooth: Fix minor coding style issue in smp.c
The convention for checking for NULL pointers is !ptr and not ptr == NULL. This patch fixes such an occurrence in smp.c. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
923e24143e
commit
7f376cd6dc
@ -356,7 +356,7 @@ static int smp_e(struct crypto_blkcipher *tfm, const u8 *k, u8 *r)
|
|||||||
uint8_t tmp[16], data[16];
|
uint8_t tmp[16], data[16];
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (tfm == NULL) {
|
if (!tfm) {
|
||||||
BT_ERR("tfm %p", tfm);
|
BT_ERR("tfm %p", tfm);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user