[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20151108071425.GA1596@alpha.sfu-kras.ru>
Date: Sun, 8 Nov 2015 14:14:25 +0700
From: Ivan Safonov <insafonov@...il.com>
To: devel@...verdev.osuosl.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Vaishali Thakkar <vthakkar1994@...il.com>,
Jakub Sitnicki <jsitnicki@...il.com>,
Anish Bhatt <anish@...ech.edu>, Joe Perches <joe@...ches.com>,
Ivan Safonov <insafonov@...il.com>,
Nicholas Mc Guire <der.herr@...r.at>,
Alexey Khoroshilov <khoroshilov@...ras.ru>,
Rémy Oudompheng <remyoudompheng@...il.com>,
Sudip Mukherjee <sudipm.mukherjee@...il.com>,
Shraddha Barke <shraddha.6596@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 11/12] staging: rtl8188eu: reg_bssid variable removed in
hw_var_set_bssid
The reg_bssid variable used only once. Also idx renamed to i and Adapter to adapter.
Signed-off-by: Ivan Safonov <insafonov@...il.com>
---
drivers/staging/rtl8188eu/hal/usb_halinit.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index e1d6632..01b0026 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1261,15 +1261,12 @@ static void hw_var_set_macaddr(struct adapter *adapter, u8 variable, u8 *val)
usb_write8(adapter, REG_MACID + i, val[i]);
}
-static void hw_var_set_bssid(struct adapter *Adapter, u8 variable, u8 *val)
+static void hw_var_set_bssid(struct adapter *adapter, u8 variable, u8 *val)
{
- u8 idx = 0;
- u32 reg_bssid;
-
- reg_bssid = REG_BSSID;
+ int i;
- for (idx = 0; idx < 6; idx++)
- usb_write8(Adapter, (reg_bssid+idx), val[idx]);
+ for (i = 0; i < 6; i++)
+ usb_write8(adapter, REG_BSSID + i, val[i]);
}
static void hw_var_set_bcn_func(struct adapter *Adapter, u8 variable, u8 *val)
--
2.4.10
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists