From: Johan Hedberg Date: Wed, 3 Dec 2014 14:07:13 +0000 (+0200) Subject: Bluetooth: Fix minor coding style issue in smp.c X-Git-Tag: v3.19-rc1~118^2~28^2~5^2~45 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f376cd6dc1c9bfd14514c70765e6900a961c4b8;p=karo-tx-linux.git 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 Signed-off-by: Marcel Holtmann --- 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; }