projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4a6b7
)
staging: rtl8712: Use ETH_ALEN instead of hardcoded value
author
Mauro Dreissig
<mukadr@gmail.com>
Sun, 5 Jul 2020 14:35:50 +0000
(11:35 -0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 11:53:59 +0000
(13:53 +0200)
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>
drivers/staging/rtl8712/hal_init.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8712/hal_init.c
b/drivers/staging/rtl8712/hal_init.c
index
d3fc6fa
..
d53efdf
100644
(file)
--- a/
drivers/staging/rtl8712/hal_init.c
+++ b/
drivers/staging/rtl8712/hal_init.c
@@
-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;