diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-06 20:27:10 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-09 02:43:22 +0400 |
commit | 99aa3473e672ca610905838997fa018b95cd643f (patch) | |
tree | c041c821d2825adf2e6be17e9e617355eb255b90 /net/packet | |
parent | b9ad2baf91426787bf52dc06f53b0e81553d1c7d (diff) | |
download | linux-99aa3473e672ca610905838997fa018b95cd643f.tar.xz |
af_packet: Quiet sparse noise about using plain integer as NULL pointer
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>
Diffstat (limited to 'net/packet')
-rw-r--r-- | 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 ceaca7c134a0..f016f6634a79 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; } } |