diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-06 18:27:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-09 00:43:22 +0200 |
commit | 99aa3473e672ca610905838997fa018b95cd643f (patch) | |
tree | c041c821d2825adf2e6be17e9e617355eb255b90 | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/ppwask... (diff) | |
download | linux-99aa3473e672ca610905838997fa018b95cd643f.tar.xz linux-99aa3473e672ca610905838997fa018b95cd643f.zip |
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>
-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; } } |