]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/packet: Remove unused macro BLOCK_PRIV
authorWang Hai <wanghai38@huawei.com>
Sat, 5 Sep 2020 08:50:58 +0000 (16:50 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 6 Sep 2020 17:17:34 +0000 (10:17 -0700)
BLOCK_PRIV is never used after it was introduced.
So better to remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/packet/af_packet.c

index 2b33e977a905911c30ecc9d1a9920bccad04f23f..af6c93ed9fa0c317000eaf876a9976a1f31b5295 100644 (file)
@@ -177,7 +177,6 @@ static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
 #define BLOCK_LEN(x)           ((x)->hdr.bh1.blk_len)
 #define BLOCK_SNUM(x)          ((x)->hdr.bh1.seq_num)
 #define BLOCK_O2PRIV(x)        ((x)->offset_to_priv)
-#define BLOCK_PRIV(x)          ((void *)((char *)(x) + BLOCK_O2PRIV(x)))
 
 struct packet_sock;
 static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev,