Skip to contentSkip to conversation

hostap: proc: Remove unused variable

PATCH In review Mark Brown 3 participants 3 messages Sep 16, 2014 – Sep 30, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 hostap: proc: Remove unused variable

Since "hostap: proc: substitute loops by %*phN" (62c5afb8e388) the variable i has been unused in prism2_bss_list_proc_show() so remove it.

---
 drivers/net/wireless/hostap/hostap_proc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/hostap/hostap_proc.c +0 -1
index 3a23a6d..dd84557 100644
@@ -168,7 +168,6 @@ static int prism2_bss_list_proc_show(struct seq_file *m, void *v)
 	local_info_t *local = m->private;
 	struct list_head *ptr = v;
 	struct hostap_bss_info *bss;
-	int i;
 
 	if (ptr == &local->bss_list) {
 		seq_printf(m, "#BSSID\tlast_update\tcount\tcapab_info\tSSID(txt)\t"
Signature · 1 line
2.1.0
#1 lore raw
Quoted 22 lines · Mark Brown

Since "hostap: proc: substitute loops by %*phN" (62c5afb8e388) the variable i has been unused in prism2_bss_list_proc_show() so remove it.

---
 drivers/net/wireless/hostap/hostap_proc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/hostap/hostap_proc.c +0 -1
index 3a23a6d..dd84557 100644
@@ -168,7 +168,6 @@ static int prism2_bss_list_proc_show(struct seq_file *m, void *v)
 	local_info_t *local = m->private;
 	struct list_head *ptr = v;
 	struct hostap_bss_info *bss;
-	int i;
 
 	if (ptr == &local->bss_list) {
 		seq_printf(m, "#BSSID\tlast_update\tcount\tcapab_info\tSSID(txt)\t"
Signature · 1 line
2.1.0

What tree are you using? In wireless-next, I still see a loop in that function using i as an index variable.

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 7 lines · John W. Linville
Quoted 2 lines · Mark Brown

Since "hostap: proc: substitute loops by %*phN" (62c5afb8e388) the variable i has been unused in prism2_bss_list_proc_show() so remove it.

What tree are you using? In wireless-next, I still see a loop in that function using i as an index variable.

This was in -next for whatever day I sent that.