Commit d3401cef authored by Tom Mounet's avatar Tom Mounet Committed by Greg Kroah-Hartman
Browse files

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: default avatarTom Mounet <tommounet@gmail.com>
Reviewed-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/66804898.5d0a0220.6df0f.4f0a@mx.google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d67f0631
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);