projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ad2ba
)
af_packet: Quiet sparse noise about using plain integer as NULL pointer
author
Ying Xue
<ying.xue@windriver.com>
Mon, 6 Aug 2012 16:27:10 +0000
(16:27 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Aug 2012 22:43:22 +0000
(15:43 -0700)
Quiets the sparse warning:
warning: Using plain integer as NULL pointer
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index ceaca7c134a011b659bc439dff6de58269b532b4..f016f6634a7964da23c2fbaeb3b1bead95e9f561 100644
(file)
--- a/
net/packet/af_packet.c
+++ b/
net/packet/af_packet.c
@@
-1079,7
+1079,7
@@
static void *packet_current_rx_frame(struct packet_sock *po,
default:
WARN(1, "TPACKET version not supported\n");
BUG();
- return
0
;
+ return
NULL
;
}
}