projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e311f25
)
staging: qlge: fix comparison to NULL warning
author
Jules Irenge
<jbi.octave@gmail.com>
Thu, 10 Oct 2019 21:40:06 +0000
(22:40 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 11 Oct 2019 09:07:28 +0000
(11:07 +0200)
Fix comparison to NULL by replacing with !ptr instead.
Issue detected by checkpatch.
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link:
https://lore.kernel.org/r/20191010214006.23677-4-jbi.octave@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_dbg.c
patch
|
blob
|
history
diff --git
a/drivers/staging/qlge/qlge_dbg.c
b/drivers/staging/qlge/qlge_dbg.c
index 182a07ae5e61285d7e9828b6d3052451a248a7cc..019b7e6a1b7a80ac9059b3c1623733c52d23fd74 100644
(file)
--- a/
drivers/staging/qlge/qlge_dbg.c
+++ b/
drivers/staging/qlge/qlge_dbg.c
@@
-1805,7
+1805,7
@@
void ql_dump_hw_cb(struct ql_adapter *qdev, int size, u32 bit, u16 q_id)
pr_err("%s: Enter\n", __func__);
ptr = kmalloc(size, GFP_ATOMIC);
- if (
ptr == NULL
)
+ if (
!ptr
)
return;
if (ql_write_cfg(qdev, ptr, size, bit, q_id)) {