Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johan Hedberg and committed by
Marcel Holtmann
7f376cd6 923e2414

+1 -1
+1 -1
net/bluetooth/smp.c
··· 356 356 uint8_t tmp[16], data[16]; 357 357 int err; 358 358 359 - if (tfm == NULL) { 359 + if (!tfm) { 360 360 BT_ERR("tfm %p", tfm); 361 361 return -EINVAL; 362 362 }