projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923e241
)
Bluetooth: Fix minor coding style issue in smp.c
author
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 3 Dec 2014 14:07:13 +0000
(16:07 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:22 +0000
(16:51 +0100)
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>
net/bluetooth/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/smp.c
b/net/bluetooth/smp.c
index a7b973b867c8ef26d3e3e631af47f1ebddf83a15..7435940456ee741ec5bd889f7d253a755491078d 100644
(file)
--- 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;
}