From: Francois Romieu Date: Thu, 3 Jan 2008 22:38:38 +0000 (+0100) Subject: r8169: fix missing loop variable increment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cadf1855e9f97d3f6857a168e1e7798fe27530a1;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git r8169: fix missing loop variable increment Spotted-by: Citizen Lee Signed-off-by: Francois Romieu Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index af8030981f10..3acfeeabdee1 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -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;