mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
r8169: fix missing loop variable increment
Spotted-by: Citizen Lee <citizen_lee@thecus.com> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
ab7a983176
commit
cadf1855e9
1 changed files with 1 additions and 1 deletions
|
@ -2002,7 +2002,7 @@ static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version)
|
|||
u32 clk;
|
||||
|
||||
clk = RTL_R8(Config2) & PCI_Clock_66MHz;
|
||||
for (i = 0; i < ARRAY_SIZE(cfg2_info); i++) {
|
||||
for (i = 0; i < ARRAY_SIZE(cfg2_info); i++, p++) {
|
||||
if ((p->mac_version == mac_version) && (p->clk == clk)) {
|
||||
RTL_W32(0x7c, p->val);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue