Skip to content

Commit

Permalink
packet: remove unused variable 'status' in __packet_lookup_frame_in_b…
Browse files Browse the repository at this point in the history
…lock

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

Signed-off-by: Mao Wenan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Mao Wenan authored and davem330 committed Jun 11, 2019
1 parent f7a8fb1 commit 4608805
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,6 @@ static void prb_fill_curr_block(char *curr,
/* Assumes caller has the sk->rx_queue.lock */
static void *__packet_lookup_frame_in_block(struct packet_sock *po,
struct sk_buff *skb,
int status,
unsigned int len
)
{
Expand Down Expand Up @@ -1075,7 +1074,7 @@ static void *packet_current_rx_frame(struct packet_sock *po,
po->rx_ring.head, status);
return curr;
case TPACKET_V3:
return __packet_lookup_frame_in_block(po, skb, status, len);
return __packet_lookup_frame_in_block(po, skb, len);
default:
WARN(1, "TPACKET version not supported\n");
BUG();
Expand Down

0 comments on commit 4608805

Please sign in to comment.