Skip to content

Commit d3401ce

Browse files
Tom Mounetgregkh
authored andcommitted
staging: nvec: Use x instead of x != NULL to improve readability.
Use x instead of x != NULL to improve readability. Issue identified by checkpatch. Signed-off-by: Tom Mounet <[email protected]> Reviewed-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d67f063 commit d3401ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/nvec/nvec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ int nvec_write_sync(struct nvec_chip *nvec,
300300
{
301301
mutex_lock(&nvec->sync_write_mutex);
302302

303-
if (msg != NULL)
303+
if (msg)
304304
*msg = NULL;
305305

306306
nvec->sync_write_pending = (data[1] << 8) + data[0];
@@ -322,7 +322,7 @@ int nvec_write_sync(struct nvec_chip *nvec,
322322

323323
dev_dbg(nvec->dev, "nvec_sync_write: pong!\n");
324324

325-
if (msg != NULL)
325+
if (msg)
326326
*msg = nvec->last_sync_msg;
327327
else
328328
nvec_msg_free(nvec, nvec->last_sync_msg);

0 commit comments

Comments
 (0)