Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96f657e6 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net/packet: constify __packet_get_status() argument



struct packet_sock  is only read.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f30e33bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;