From 01f60ef34fdd1f926d30d69b3c5fad182fdf9faf Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 20 Jun 2007 23:56:45 -0400 Subject: [PATCH] Rename set_group_address to at76_set_group_address, clean it up Although that function is commented out, it would be better to make it look like other functions. Remove "#if 1", it's confusing. Signed-off-by: Pavel Roskin --- at76_usb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/at76_usb.c b/at76_usb.c index c8ce70b..0368f5a 100644 --- a/at76_usb.c +++ b/at76_usb.c @@ -1018,7 +1018,7 @@ static int at76_add_mac_address(struct at76_priv *priv, void *addr) #if 0 /* Implemented to get promisc. mode working, but does not help. May still be useful for multicast eventually. */ -static int set_group_address(struct at76_priv *priv, u8 *addr, int n) +static int at76_set_group_address(struct at76_priv *priv, u8 *addr, int n) { int ret = 0; @@ -1033,7 +1033,7 @@ static int set_group_address(struct at76_priv *priv, u8 *addr, int n) err("%s: set_mib (MIB_MAC_ADD, group_addr) failed: %d", priv->netdev->name, ret); } -#if 1 + /* I do not know anything about the group_addr_status field... (oku) */ memset(&priv->mib_buf, 0, sizeof(struct set_mib_buffer)); priv->mib_buf.type = MIB_MAC_ADD; @@ -1046,7 +1046,6 @@ static int set_group_address(struct at76_priv *priv, u8 *addr, int n) err("%s: set_mib (MIB_MAC_ADD, group_addr_status) failed: %d", priv->netdev->name, ret); } -#endif return ret; } #endif -- cgit v1.2.3