Re: [PATCH] staging: wfx: fix warning of using plain integer

From: Greg KH
Date: Sat Nov 02 2019 - 06:39:29 EST


On Sat, Nov 02, 2019 at 12:14:57AM +0000, Jules Irenge wrote:
> Fix warning of using plain integer as NULL pointer.
> Issue reported by sparse tool.
>
> Signed-off-by: Jules Irenge <jbi.octave@xxxxxxxxx>
> ---
> 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
>

Please send this as part of a patch series, with your other changes to
this driver.

thanks,

greg k-h