Skip to contentSkip to conversation

batman-adv: Remove unused variable

PATCH In review =?UTF-8?q?Linus=20L=C3=BCssing?= 2 participants 2 messages Dec 31, 2009 – Jan 1, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 batman-adv: Remove unused variable

The variable 'flag' is never being used in this function, therefore removing it.

---
 soft-interface.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
soft-interface.c +0 -1
index 4d4d542..bc0217b 100644
@@ -148,7 +148,6 @@ struct net_device_stats *interface_stats(struct net_device *dev)
 int interface_set_mac_addr(struct net_device *dev, void *p)
 {
 	struct sockaddr *addr = p;
-	unsigned long flags;
 
 	if (!is_valid_ether_addr(addr->sa_data))
 		return -EADDRNOTAVAIL;
Signature · 1 line
1.6.5.7
#1 lore raw

Hey Linus,

sorry, i have not seen your patch and checked this in myself (r1525). Thanks for reporting it anyway. :)

best regards,
Simon

Quoted 27 lines · On Thu, Dec 31, 2009 at 04:41:20AM +0100, =?UTF-8?q?Linus=20L=C3=BCssing?=…

The variable 'flag' is never being used in this function, therefore removing it.

---
 soft-interface.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
soft-interface.c +0 -1
index 4d4d542..bc0217b 100644
@@ -148,7 +148,6 @@ struct net_device_stats *interface_stats(struct net_device *dev)
 int interface_set_mac_addr(struct net_device *dev, void *p)
 {
 	struct sockaddr *addr = p;
-	unsigned long flags;
 
 	if (!is_valid_ether_addr(addr->sa_data))
 		return -EADDRNOTAVAIL;
Signature · 6 lines
1.6.5.7

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n