Skip to contentSkip to conversation

staging: wfx: fix warning of using plain integer

PATCH Superseded Jules Irenge 2 participants 2 messages Nov 2, 2019 Staging

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/staging/wfx/queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wfx/queue.c +1 -1
index ef3ee55cf621..5d29bce65f71 100644
@@ -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
#1 lore raw
Quoted 24 lines · Jules Irenge

Fix warning of using plain integer as NULL pointer. Issue reported by sparse tool.

---
 drivers/staging/wfx/queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wfx/queue.c +1 -1
index ef3ee55cf621..5d29bce65f71 100644
@@ -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