projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd59102
)
ath6kl: fix warning for using 0 as NULL
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 11 Jan 2017 16:31:30 +0000
(16:31 +0000)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Thu, 19 Jan 2017 13:14:52 +0000
(15:14 +0200)
Fixes the following sparse warning:
drivers/net/wireless/ath/ath6kl/sdio.c:716:55: warning:
Using plain integer as NULL pointer
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/sdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/sdio.c
b/drivers/net/wireless/ath/ath6kl/sdio.c
index
8ec66e7
..
2195b1b
100644
(file)
--- a/
drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/
drivers/net/wireless/ath/ath6kl/sdio.c
@@
-713,7
+713,7
@@
static void ath6kl_sdio_cleanup_scatter(struct ath6kl *ar)
* that the packet is properly freed?
*/
if (s_req->busrequest) {
- s_req->busrequest->scat_req =
0
;
+ s_req->busrequest->scat_req =
NULL
;
ath6kl_sdio_free_bus_req(ar_sdio, s_req->busrequest);
}
kfree(s_req->virt_dma_buf);