提交 99aa3473 编写于 作者: Y Ying Xue 提交者: David S. Miller

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: NYing Xue <ying.xue@windriver.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b9ad2baf
...@@ -1079,7 +1079,7 @@ static void *packet_current_rx_frame(struct packet_sock *po, ...@@ -1079,7 +1079,7 @@ static void *packet_current_rx_frame(struct packet_sock *po,
default: default:
WARN(1, "TPACKET version not supported\n"); WARN(1, "TPACKET version not supported\n");
BUG(); BUG();
return 0; return NULL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册