Skip to content

Commit 878cd3b

Browse files
Rosen, Ramidavem330
authored andcommitted
net/packet: remove unused parameter in prb_curr_blk_in_use().
This patch removes unused parameter from prb_curr_blk_in_use() method in net/packet/af_packet.c. Signed-off-by: Rami Rosen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c9e19ea commit 878cd3b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

net/packet/af_packet.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ static void *packet_previous_frame(struct packet_sock *po,
196196
struct packet_ring_buffer *rb,
197197
int status);
198198
static void packet_increment_head(struct packet_ring_buffer *buff);
199-
static int prb_curr_blk_in_use(struct tpacket_kbdq_core *,
200-
struct tpacket_block_desc *);
199+
static int prb_curr_blk_in_use(struct tpacket_block_desc *);
201200
static void *prb_dispatch_next_block(struct tpacket_kbdq_core *,
202201
struct packet_sock *);
203202
static void prb_retire_current_block(struct tpacket_kbdq_core *,
@@ -721,7 +720,7 @@ static void prb_retire_rx_blk_timer_expired(unsigned long data)
721720
/* Case 1. Queue was frozen because user-space was
722721
* lagging behind.
723722
*/
724-
if (prb_curr_blk_in_use(pkc, pbd)) {
723+
if (prb_curr_blk_in_use(pbd)) {
725724
/*
726725
* Ok, user-space is still behind.
727726
* So just refresh the timer.
@@ -972,8 +971,7 @@ static void prb_retire_current_block(struct tpacket_kbdq_core *pkc,
972971
}
973972
}
974973

975-
static int prb_curr_blk_in_use(struct tpacket_kbdq_core *pkc,
976-
struct tpacket_block_desc *pbd)
974+
static int prb_curr_blk_in_use(struct tpacket_block_desc *pbd)
977975
{
978976
return TP_STATUS_USER & BLOCK_STATUS(pbd);
979977
}
@@ -1064,7 +1062,7 @@ static void *__packet_lookup_frame_in_block(struct packet_sock *po,
10641062
* Check if that last block which caused the queue to freeze,
10651063
* is still in_use by user-space.
10661064
*/
1067-
if (prb_curr_blk_in_use(pkc, pbd)) {
1065+
if (prb_curr_blk_in_use(pbd)) {
10681066
/* Can't record this packet */
10691067
return NULL;
10701068
} else {

0 commit comments

Comments
 (0)