瀏覽代碼

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>
Ying Xue 13 年之前
父節點
當前提交
99aa3473e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/packet/af_packet.c

+ 1 - 1
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;
 	}
 }