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

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
...@@ -601,7 +601,7 @@ int ip_options_rcv_srr(struct sk_buff *skb) ...@@ -601,7 +601,7 @@ int ip_options_rcv_srr(struct sk_buff *skb)
unsigned long orefdst; unsigned long orefdst;
int err; int err;
if (!opt->srr || !rt) if (!rt)
return 0; return 0;
if (skb->pkt_type != PACKET_HOST) if (skb->pkt_type != PACKET_HOST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment