From 2c1facbc437ceb00b022e4484900c831e39a773a Mon Sep 17 00:00:00 2001 From: Jules Irenge Date: Tue, 5 Nov 2019 01:03:51 +0000 Subject: [PATCH] staging: wfx: replace 0 by NULL Replace 0 by NULL as the return value of a pointer-returning function. Issue detected by sparse tool. Signed-off-by: Jules Irenge Link: https://lore.kernel.org/r/20191105010352.222479-2-jbi.octave@gmail.com Signed-off-by: Greg Kroah-Hartman --- 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 ef3ee55cf621b..5d29bce65f717 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.30.2