瀏覽代碼

unused variable is deleted

Miklos Tirpak 17 年之前
父節點
當前提交
f701ac7d6b
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      ip_addr.h

+ 1 - 3
ip_addr.h

@@ -237,9 +237,7 @@ inline static void ip_addr_mk_any(int af, struct ip_addr* ip)
 inline static int matchnet(struct ip_addr* ip, struct net* net)
 {
 	unsigned int r;
-	int ret;
-	
-	ret=-1;
+
 	if (ip->af == net->ip.af){
 		for(r=0; r<ip->len/4; r++){ /* ipv4 & ipv6 addresses are
 									   all multiple of 4*/