2
0
Эх сурвалжийг харах

unused variable is deleted

Miklos Tirpak 17 жил өмнө
parent
commit
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*/