From: David S. Miller Date: Thu, 12 May 2011 23:26:57 +0000 (-0400) Subject: ipv4: Kill spurious opt->srr check in ip_options_rcv_srr(). X-Git-Tag: MMI-PSA29.97-13-9~19691^2~104^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10949550bd1e50cc91c0f5085f7080a44b0871fe;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: David S. Miller --- diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index 01fc40965848..e82c304806bb 100644 --- a/net/ipv4/ip_options.c +++ b/net/ipv4/ip_options.c @@ -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)