summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_options.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-12 19:26:57 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-12 19:26:57 -0400
commit10949550bd1e50cc91c0f5085f7080a44b0871fe (patch)
treee5a1862145c488c6abf9d12cc52a1db90481823d /net/ipv4/ip_options.c
parentb2a103e6d0afa432dff66b36473c5a55b6b0376c (diff)
downloadop-kernel-dev-10949550bd1e50cc91c0f5085f7080a44b0871fe.zip
op-kernel-dev-10949550bd1e50cc91c0f5085f7080a44b0871fe.tar.gz
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 <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_options.c')
-rw-r--r--net/ipv4/ip_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c
index 01fc409..e82c304 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)
OpenPOWER on IntegriCloud