* [PATCH] af_packet: Quiet sparse noise about using plain integer as NULL pointer
@ 2012-08-07 2:27 Ying Xue
2012-08-08 22:43 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ying Xue @ 2012-08-07 2:27 UTC (permalink / raw)
To: davem; +Cc: netdev
Quiets the sparse warning:
warning: Using plain integer as NULL pointer
Signed-off-by: Ying Xue <ying.xue@windriver.com>
---
net/packet/af_packet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index ceaca7c..f016f66 100644
--- 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;
}
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] af_packet: Quiet sparse noise about using plain integer as NULL pointer
2012-08-07 2:27 [PATCH] af_packet: Quiet sparse noise about using plain integer as NULL pointer Ying Xue
@ 2012-08-08 22:43 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-08-08 22:43 UTC (permalink / raw)
To: ying.xue; +Cc: netdev
From: Ying Xue <ying.xue@windriver.com>
Date: Tue, 7 Aug 2012 10:27:10 +0800
> Quiets the sparse warning:
> warning: Using plain integer as NULL pointer
>
> Signed-off-by: Ying Xue <ying.xue@windriver.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-08 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 2:27 [PATCH] af_packet: Quiet sparse noise about using plain integer as NULL pointer Ying Xue
2012-08-08 22:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).