Commit f05f33fa authored by Laura Garcia Liebana's avatar Laura Garcia Liebana Committed by Greg Kroah-Hartman

staging: nvec: Fix comparison to NULL

Replace the use of comparison to NULL, use !<expression> instead. Checkpatch detected these issues.
Signed-off-by: default avatarLaura Garcia Liebana <nevola@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9fc27699
...@@ -264,7 +264,7 @@ int nvec_write_async(struct nvec_chip *nvec, const unsigned char *data, ...@@ -264,7 +264,7 @@ int nvec_write_async(struct nvec_chip *nvec, const unsigned char *data,
msg = nvec_msg_alloc(nvec, NVEC_MSG_TX); msg = nvec_msg_alloc(nvec, NVEC_MSG_TX);
if (msg == NULL) if (!msg)
return -ENOMEM; return -ENOMEM;
msg->data[0] = size; msg->data[0] = size;
...@@ -620,7 +620,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) ...@@ -620,7 +620,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev)
} else { } else {
nvec->rx = nvec_msg_alloc(nvec, NVEC_MSG_RX); nvec->rx = nvec_msg_alloc(nvec, NVEC_MSG_RX);
/* Should not happen in a normal world */ /* Should not happen in a normal world */
if (unlikely(nvec->rx == NULL)) { if (unlikely(!nvec->rx)) {
nvec->state = 0; nvec->state = 0;
break; break;
} }
......
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