packet: remove unused variable 'status' in __packet_lookup_frame_in_block

The variable 'status' in  __packet_lookup_frame_in_block() is never used since
introduction in commit f6fb8f100b ("af-packet: TPACKET_V3 flexible buffer
implementation."), we can remove it.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Mao Wenan 2019-06-11 09:32:13 +08:00 committed by David S. Miller
parent f7a8fb1ff1
commit 46088059aa
1 changed files with 1 additions and 2 deletions

View File

@ -1003,7 +1003,6 @@ static void prb_fill_curr_block(char *curr,
/* Assumes caller has the sk->rx_queue.lock */ /* Assumes caller has the sk->rx_queue.lock */
static void *__packet_lookup_frame_in_block(struct packet_sock *po, static void *__packet_lookup_frame_in_block(struct packet_sock *po,
struct sk_buff *skb, struct sk_buff *skb,
int status,
unsigned int len unsigned int len
) )
{ {
@ -1075,7 +1074,7 @@ static void *packet_current_rx_frame(struct packet_sock *po,
po->rx_ring.head, status); po->rx_ring.head, status);
return curr; return curr;
case TPACKET_V3: case TPACKET_V3:
return __packet_lookup_frame_in_block(po, skb, status, len); return __packet_lookup_frame_in_block(po, skb, len);
default: default:
WARN(1, "TPACKET version not supported\n"); WARN(1, "TPACKET version not supported\n");
BUG(); BUG();