Skip to content

Commit

Permalink
ipv4: Kill spurious opt->srr check in ip_options_rcv_srr().
Browse files Browse the repository at this point in the history
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: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed May 12, 2011
1 parent b2a103e commit 1094955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ip_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1094955

Please sign in to comment.