]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: remove unused variable
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 1 Aug 2011 17:59:04 +0000 (21:59 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Sep 2011 17:34:48 +0000 (21:34 +0400)
* sockopt.c (getsockopt_ifindex): "ifindex" was never used

lib/sockopt.c

index 55c6226b711e6386ef0378eb6def992af281082e..6ab97689699338f888d189897ce08a1725b9fd3c 100644 (file)
@@ -451,8 +451,6 @@ getsockopt_ipv4_ifindex (struct msghdr *msgh)
 int
 getsockopt_ifindex (int af, struct msghdr *msgh)
 {
-  int ifindex = 0;
-  
   switch (af)
     {
       case AF_INET:
@@ -465,7 +463,7 @@ getsockopt_ifindex (int af, struct msghdr *msgh)
 #endif
       default:
         zlog_warn ("getsockopt_ifindex: unknown address family %d", af);
-        return (ifindex = 0);
+        return 0;
     }
 }