From 3a8c3dd7d0331c2da7c14aa33c48d512300d6e09 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Mon, 1 Aug 2011 21:59:04 +0400 Subject: lib: remove unused variable * sockopt.c (getsockopt_ifindex): "ifindex" was never used --- lib/sockopt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/sockopt.c b/lib/sockopt.c index 55c6226b..6ab97689 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -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; } } -- cgit v1.2.1