Skip to contentSkip to conversation

net: Remove unused variable warning

PATCH In review Jianjun Kong 2 participants 2 messages Oct 28, 2008 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: Remove unused variable warning

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

---
 net/ax25/sysctl_net_ax25.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
net/ax25/sysctl_net_ax25.c +2 -0
index f288fc4..735ceef 100644
@@ -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;
 
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 4 lines · Jianjun Kong

net: Remove unused variable warning
'min_ds_timeout' and 'max_ds_timeout' are only used when CONFIG_AX25_DAMA_SLAVE is defined.

Quoted 9 lines

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

---
net/ax25/sysctl_net_ax25.c | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)

http://www.gossamer-threads.com/lists/linux/kernel/985658

Signature · 1 line
"Sometimes the only way to stay sane is to go a little crazy."