lib: remove unused variable

* sockopt.c (getsockopt_ifindex): "ifindex" was never used
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 55c6226..6ab9768 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -451,8 +451,6 @@
 int
 getsockopt_ifindex (int af, struct msghdr *msgh)
 {
-  int ifindex = 0;
-  
   switch (af)
     {
       case AF_INET:
@@ -465,7 +463,7 @@
 #endif
       default:
         zlog_warn ("getsockopt_ifindex: unknown address family %d", af);
-        return (ifindex = 0);
+        return 0;
     }
 }