Commit db4b23d5 authored by Jules Irenge's avatar Jules Irenge Committed by Greg Kroah-Hartman

staging: qlge: fix comparison to NULL warning

Fix comparison to NULL by replacing with !ptr instead.
 Issue detected by checkpatch.
Signed-off-by: default avatarJules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/20191010214006.23677-4-jbi.octave@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e311f25e
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment