summaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2012-08-06 16:27:10 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-08 15:43:22 -0700
commit99aa3473e672ca610905838997fa018b95cd643f (patch)
treec041c821d2825adf2e6be17e9e617355eb255b90 /net/packet
parentb9ad2baf91426787bf52dc06f53b0e81553d1c7d (diff)
downloadlinux-99aa3473e672ca610905838997fa018b95cd643f.tar.bz2
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.c2
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;
}
}