summaryrefslogtreecommitdiff
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2020-09-05 11:50:58 +0300
committerJakub Kicinski <kuba@kernel.org>2020-09-06 20:17:34 +0300
commit383e3f3ee811e464d6622106a13ba865fd1d27de (patch)
treebd55c4a240bb2694f192cea9972f266da3c30987 /net/packet/af_packet.c
parentbe239c4d5e3e4dce361e516b307ae117ee71e5cb (diff)
downloadlinux-383e3f3ee811e464d6622106a13ba865fd1d27de.tar.xz
net/packet: Remove unused macro BLOCK_PRIV
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>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 2b33e977a905..af6c93ed9fa0 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -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,