From: Jules Irenge Date: Tue, 5 Nov 2019 01:03:51 +0000 (+0000) Subject: staging: wfx: replace 0 by NULL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2c1facbc437ceb00b022e4484900c831e39a773a;p=linux.git 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 --- 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;