staging: wfx: fix warning of using plain integer
PATCH 1/1 staging: wfx: fix warning of using plain integer
Fix warning of using plain integer as NULL pointer. Issue reported by sparse tool.
Signed-off-by Jules Irenge <[email protected]>
--- drivers/staging/wfx/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wfx/queue.c +1 -1
@@ -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;
Signature · 1 line
2.21.0
Quoted 24 lines · Jules Irenge
Fix warning of using plain integer as NULL pointer. Issue reported by sparse tool.
Signed-off-by Jules Irenge <[email protected]>--- drivers/staging/wfx/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/wfx/queue.c +1
-1@@ -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;Signature · 1 line
2.21.0
Please send this as part of a patch series, with your other changes to this driver.
thanks,
greg k-h