diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-12-03 17:07:13 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-03 18:51:22 +0300 |
commit | 7f376cd6dc1c9bfd14514c70765e6900a961c4b8 (patch) | |
tree | 7a9f02e7c5423aedf206a3bb40a3e02cb0679ec2 /net/bluetooth/smp.c | |
parent | 923e24143efe654553cabdb08f369d3789413147 (diff) | |
download | linux-7f376cd6dc1c9bfd14514c70765e6900a961c4b8.tar.xz |
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>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r-- | net/bluetooth/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index a7b973b867c8..7435940456ee 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -356,7 +356,7 @@ static int smp_e(struct crypto_blkcipher *tfm, const u8 *k, u8 *r) uint8_t tmp[16], data[16]; int err; - if (tfm == NULL) { + if (!tfm) { BT_ERR("tfm %p", tfm); return -EINVAL; } |