staging: rtl8712: Use ETH_ALEN instead of hardcoded value
Use macro ETH_ALEN which defines the number of octets in an ethernet address. Signed-off-by: Mauro Dreissig <mukadr@gmail.com> Link: https://lore.kernel.org/r/20200705143552.9368-4-mukadr@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4e4a6b7c18
commit
f1c9ea1acf
@ -343,7 +343,7 @@ uint rtl8712_hal_init(struct _adapter *padapter)
|
||||
/* Fix the RX FIFO issue(USB error) */
|
||||
r8712_write8(padapter, 0x1025fe5C, r8712_read8(padapter, 0x1025fe5C)
|
||||
| BIT(7));
|
||||
for (i = 0; i < 6; i++)
|
||||
for (i = 0; i < ETH_ALEN; i++)
|
||||
padapter->eeprompriv.mac_addr[i] = r8712_read8(padapter,
|
||||
MACID + i);
|
||||
return _SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user