mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-07 17:44:12 -05:00
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>
This commit is contained in:
committed by
David S. Miller
parent
b9ad2baf91
commit
99aa3473e6
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user