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

Commit 10949550 authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Kill spurious opt->srr check in ip_options_rcv_srr().



All call sites conditionalize the call to ip_options_rcv_srr()
with a check of opt->srr, so no need to check it again there.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b2a103e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ int ip_options_rcv_srr(struct sk_buff *skb)
	unsigned long orefdst;
	int err;

	if (!opt->srr || !rt)
	if (!rt)
		return 0;

	if (skb->pkt_type != PACKET_HOST)