mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 23:54:04 +08:00
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:
parent
f7a8fb1ff1
commit
46088059aa
@ -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
|
||||
)
|
||||
{
|
||||
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user