staging: rtl8188eu: reg_macid variable removed in hw_var_set_macaddr
PATCH 10/12 staging: rtl8188eu: reg_macid variable removed in hw_var_set_macaddr
The reg_macid variable used only once. Also idx renamed to i and Adapter to adapter.
Signed-off-by Ivan Safonov <[email protected]>
--- drivers/staging/rtl8188eu/hal/usb_halinit.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/staging/rtl8188eu/hal/usb_halinit.c +4 -7
@@ -1253,15 +1253,12 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8 *val) } } -static void hw_var_set_macaddr (struct adapter *Adapter,u8 variable,u8 *val) +static void hw_var_set_macaddr (struct adapter *adapter,u8 variable,u8 *val) { -u8 idx =0 ; -u32 reg_macid; - - reg_macid =REG_MACID ; +int i; -for (idx =0 ; idx <6 ; idx++) -usb_write8 (Adapter, (reg_macid+idx), val[idx]); +for (i =0 ; i <6 ; i++) +usb_write8 (adapter,REG_MACID + i, val[i]); }static void hw_var_set_bssid (struct adapter *Adapter,u8 variable,u8 *val)
Signature · 1 line
2.4.10
Quoted 17 lines · Ivan Safonov
The
reg_macidvariable used only once. Also idx renamed to i and Adapter to adapter.Signed-off-by Ivan Safonov <[email protected]>--- drivers/staging/rtl8188eu/hal/usb_halinit.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)drivers/staging/rtl8188eu/hal/usb_halinit.c +1
-1@@ -1253,15 +1253,12 @@ static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8 *val) } } -static void hw_var_set_macaddr (struct adapter *Adapter,u8 variable,u8 *val) +static void hw_var_set_macaddr (struct adapter *adapter,u8 variable,u8 *val)
drivers/staging/rtl8188eu/hal/usb_halinit.c static void hw_var_set_opmode(struct adapter *Adapter, u8 variable, u8 *val) · line 1260
Quoted 10 lines
drivers/staging/rtl8188eu/hal/usb_halinit.c +2
-6{ -u8 idx =0 ; -u32 reg_macid; - - reg_macid =REG_MACID ; +int i; -for (idx =0 ; idx <6 ; idx++) -usb_write8 (Adapter, (reg_macid+idx), val[idx]); +for (i =0 ; i <6 ; i++)
ETH_ALEN?
Quoted 12 lines
drivers/staging/rtl8188eu/hal/usb_halinit.c +1
-1+usb_write8 (adapter,REG_MACID + i, val[i]); }static void hw_var_set_bssid (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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
With Best Regards, Andy Shevchenko