Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ying Xue and committed by
David S. Miller
99aa3473 b9ad2baf

+1 -1
+1 -1
net/packet/af_packet.c
··· 1079 1079 default: 1080 1080 WARN(1, "TPACKET version not supported\n"); 1081 1081 BUG(); 1082 - return 0; 1082 + return NULL; 1083 1083 } 1084 1084 } 1085 1085