Re: [PATCH] [3.10 LTS sysctl_net_core] remove an unused variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 01, 2015 at 10:53:24AM +0200, Martin Kaiser wrote:
> since e2f572a9be3f00bcf470a918d9e53353bea9ef4c, the variable 'one'
> is no longer used
> 
> net/core/sysctl_net_core.c:24:12: warning: 'one' defined but not used [-Wunused-variable]
>  static int one = 1;
> 
> remove it to fix the compiler warning
> 
> Signed-off-by: Martin Kaiser <martin@xxxxxxxxx>
> ---
>  net/core/sysctl_net_core.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
> index 0a327b6..e6c0841 100644
> --- a/net/core/sysctl_net_core.c
> +++ b/net/core/sysctl_net_core.c
> @@ -21,7 +21,6 @@
>  #include <net/net_ratelimit.h>
>  
>  static int zero = 0;
> -static int one = 1;
>  static int ushort_max = USHRT_MAX;
>  static int min_sndbuf = SOCK_MIN_SNDBUF;
>  static int min_rcvbuf = SOCK_MIN_RCVBUF;
> -- 
> 1.7.10.4

Sorry, but no, this is there because the original commit has it, don't
diverge from what is in Linus's tree.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]