浏览代码

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>
David S. Miller 14 年之前
父节点
当前提交
10949550bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv4/ip_options.c

+ 1 - 1
net/ipv4/ip_options.c

@@ -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)