projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce87e2
)
staging: vt6655: Remove NULL pointer sparse warning
author
Guillaume Clement
<
[email protected]
>
Thu, 24 Jul 2014 23:06:28 +0000
(
01:06
+0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 27 Jul 2014 18:21:28 +0000
(11:21 -0700)
We were using 0 instead of NULL to initialize a pointer, which caused
a sparse warning.
Signed-off-by: Guillaume Clement <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/vt6655/device_main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6655/device_main.c
b/drivers/staging/vt6655/device_main.c
index 4413e4a286c04d9926c5e08f69d3941cd4a973f6..1e1d3b451653b0d0bf7905e4d46faa2b30d4649e 100644
(file)
--- a/
drivers/staging/vt6655/device_main.c
+++ b/
drivers/staging/vt6655/device_main.c
@@
-1626,7
+1626,7
@@
static void device_free_tx_buf(PSDevice pDevice, PSTxDesc pDesc)
dev_kfree_skb_irq(skb);
pTDInfo->skb_dma = 0;
- pTDInfo->skb =
0
;
+ pTDInfo->skb =
NULL
;
pTDInfo->byFlags = 0;
}