aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2012-08-06 12:27:10 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-08 18:43:22 -0400
commit99aa3473e672ca610905838997fa018b95cd643f (patch)
treec041c821d2825adf2e6be17e9e617355eb255b90 /net/packet
parentb9ad2baf91426787bf52dc06f53b0e81553d1c7d (diff)
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,
1079 default: 1079 default:
1080 WARN(1, "TPACKET version not supported\n"); 1080 WARN(1, "TPACKET version not supported\n");
1081 BUG(); 1081 BUG();
1082 return 0; 1082 return NULL;
1083 } 1083 }
1084} 1084}
1085 1085