Re: [PATCH] net: Remove unused variable warning

From: David Miller
Date: Tue Oct 28 2008 - 14:46:21 EST


From: Jianjun Kong <jianjun@xxxxxxxxx>
Date: Tue, 28 Oct 2008 16:14:57 +0800

Please send networking patches at least CC:'d to
netdev@xxxxxxxxxxxxxxx so that it gets archived properly in patchwork:

http://patchwork.ozlabs.org/project/netdev/list/

and thus doesn't get lost.

> net: Remove unused variable warning
> 'min_ds_timeout' and 'max_ds_timeout' are only used when CONFIG_AX25_DAMA_SLAVE is defined.
>
> net/ax25/sysctl_net_ax25.c:27: warning: âmin_ds_timeoutâ defined but not used
> net/ax25/sysctl_net_ax25.c:27: warning: âmax_ds_timeoutâ defined but not used
>
>
> Signed-off-by: Jianjun Kong <jianjun@xxxxxxxxx>
> ---
> net/ax25/sysctl_net_ax25.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/net/ax25/sysctl_net_ax25.c b/net/ax25/sysctl_net_ax25.c
> index f288fc4..735ceef 100644
> --- a/net/ax25/sysctl_net_ax25.c
> +++ b/net/ax25/sysctl_net_ax25.c
> @@ -24,7 +24,9 @@ static int min_idle[1], max_idle[] = {65535000};
> static int min_n2[] = {1}, max_n2[] = {31};
> static int min_paclen[] = {1}, max_paclen[] = {512};
> static int min_proto[1], max_proto[] = { AX25_PROTO_MAX };
> +#ifdef CONFIG_AX25_DAMA_SLAVE
> static int min_ds_timeout[1], max_ds_timeout[] = {65535000};
> +#endif
>
> static struct ctl_table_header *ax25_table_header;
>
> --
> 1.5.6.3
>
>
>
N‹§²æìr¸›yúèšØb²X¬¶ÇvØ^–)Þ{.nÇ+‰·¥Š{±‘êçzX§¶›¡Ü}©ž²ÆzÚ&j:+v‰¨¾«‘êçzZ+€Ê+zf£¢·hšˆ§~†­†Ûiÿûàz¹®w¥¢¸?™¨è­Ú&¢)ßf”ù^jÇy§m…á@A«a¶Úÿ 0¶ìh®å’i