[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191102001457.23369-1-jbi.octave@gmail.com>
Date: Sat, 2 Nov 2019 00:14:57 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: outreachy-kernel@...glegroups.com
Cc: jerome.pouiller@...abs.com, gregkh@...uxfoundation.com,
Boqun.Feng@...rosoft.com, linux-kernel@...r.kernel.org,
Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH] staging: wfx: fix warning of using plain integer
Fix warning of using plain integer as NULL pointer.
Issue reported by sparse tool.
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
drivers/staging/wfx/queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c
index ef3ee55cf621..5d29bce65f71 100644
--- a/drivers/staging/wfx/queue.c
+++ b/drivers/staging/wfx/queue.c
@@ -565,7 +565,7 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
}
if (ret)
- return 0;
+ return NULL;
queue_num = queue - wdev->tx_queue;
--
2.21.0
Powered by blists - more mailing lists