diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2019-11-05 04:03:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-05 19:50:21 +0300 |
commit | 2c1facbc437ceb00b022e4484900c831e39a773a (patch) | |
tree | 37c0d0d0d898ab021a8cc1dc2af14ddd07265847 /drivers/staging/wfx | |
parent | 3b525cb00c620269e07663788bfd727c07524bf9 (diff) | |
download | linux-2c1facbc437ceb00b022e4484900c831e39a773a.tar.xz |
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')
-rw-r--r-- | drivers/staging/wfx/queue.c | 2 |
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; |