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
|
@ -2002,7 +2002,7 @@ static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version)
|
||||||
u32 clk;
|
u32 clk;
|
||||||
|
|
||||||
clk = RTL_R8(Config2) & PCI_Clock_66MHz;
|
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)) {
|
if ((p->mac_version == mac_version) && (p->clk == clk)) {
|
||||||
RTL_W32(0x7c, p->val);
|
RTL_W32(0x7c, p->val);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue