aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wfx/queue.c
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2019-11-05 01:03:51 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-05 17:50:21 +0100
commit2c1facbc437ceb00b022e4484900c831e39a773a (patch)
tree37c0d0d0d898ab021a8cc1dc2af14ddd07265847 /drivers/staging/wfx/queue.c
parentstaging: qlge: Avoid NULL comparison (diff)
downloadlinux-dev-2c1facbc437ceb00b022e4484900c831e39a773a.tar.xz
linux-dev-2c1facbc437ceb00b022e4484900c831e39a773a.zip
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 <jbi.octave@gmail.com> Link: https://lore.kernel.org/r/20191105010352.222479-2-jbi.octave@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/queue.c')
-rw-r--r--drivers/staging/wfx/queue.c2
1 files changed, 1 insertions, 1 deletions
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;