summaryrefslogtreecommitdiff
path: root/net/bluetooth/smp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-12-03 16:07:13 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-12-03 16:51:22 +0100
commit7f376cd6dc1c9bfd14514c70765e6900a961c4b8 (patch)
tree7a9f02e7c5423aedf206a3bb40a3e02cb0679ec2 /net/bluetooth/smp.c
parent923e24143efe654553cabdb08f369d3789413147 (diff)
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.c2
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;
}