Skip to content

Commit

Permalink
net/packet: constify __packet_get_status() argument
Browse files Browse the repository at this point in the history
struct packet_sock  is only read.

Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Eric Dumazet authored and davem330 committed Jun 15, 2019
1 parent f30e33b commit 96f657e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static void __packet_set_status(struct packet_sock *po, void *frame, int status)
smp_wmb();
}

static int __packet_get_status(struct packet_sock *po, void *frame)
static int __packet_get_status(const struct packet_sock *po, void *frame)
{
union tpacket_uhdr h;

Expand Down

0 comments on commit 96f657e

Please sign in to comment.