net/packet: Remove unused macro BLOCK_PRIV
Subsystems (3)
PATCH v2 1/1 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 <[email protected]>
Signed-off-by Wang Hai <[email protected]>
---v1->v2:
Corrected the wrong comment
net/packet/af_packet.c | 1 - 1 file changed, 1 deletion(-)
net/packet/af_packet.c +0 -1
@@ -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,
Signature · 1 line
2.17.1
Quoted 6 lines · Wang Hai
BLOCK_PRIVis never used after it was introduced.
So better to remove it.Reported-by Hulk Robot <[email protected]>Signed-off-by Wang Hai <[email protected]>
Acked-by Willem de Bruijn <[email protected]>
Quoted 9 lines · On Sat, 5 Sep 2020 11:15:05 +0200 Willem de Bruijn wrote:
Quoted 6 lines · Wang Hai
BLOCK_PRIVis never used after it was introduced.
So better to remove it.Reported-by Hulk Robot <[email protected]>Signed-off-by Wang Hai <[email protected]>Acked-by Willem de Bruijn <[email protected]>
Applied, thanks!