From: Tom Mounet Date: Sat, 29 Jun 2024 17:47:04 +0000 (+0200) Subject: staging: nvec: Use x instead of x != NULL to improve readability. X-Git-Tag: v6.11-rc1~101^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3401cefd0f793037df0f36e12c2effdac517de1;p=thirdparty%2Flinux.git 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 Reviewed-by: Philipp Hortmann Link: https://lore.kernel.org/r/66804898.5d0a0220.6df0f.4f0a@mx.google.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index d67d2f3338b23..d09211589d1cf 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -300,7 +300,7 @@ int nvec_write_sync(struct nvec_chip *nvec, { mutex_lock(&nvec->sync_write_mutex); - if (msg != NULL) + if (msg) *msg = NULL; nvec->sync_write_pending = (data[1] << 8) + data[0]; @@ -322,7 +322,7 @@ int nvec_write_sync(struct nvec_chip *nvec, dev_dbg(nvec->dev, "nvec_sync_write: pong!\n"); - if (msg != NULL) + if (msg) *msg = nvec->last_sync_msg; else nvec_msg_free(nvec, nvec->last_sync_msg);