* [PATCH 1/1] r8169: fix missing loop variable increment
@ 2008-01-03 22:38 Francois Romieu
2008-01-12 22:41 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Francois Romieu @ 2008-01-03 22:38 UTC (permalink / raw)
To: jeff
Cc: netdev, Andrew Morton, David S. Miller,
"Citizen Lee <citizen_lee
Spotted-by: Citizen Lee <citizen_lee@thecus.com>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
---
drivers/net/r8169.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 5863190..6ee9db1 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;
--
1.5.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] r8169: fix missing loop variable increment
2008-01-03 22:38 [PATCH 1/1] r8169: fix missing loop variable increment Francois Romieu
@ 2008-01-12 22:41 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-01-12 22:41 UTC (permalink / raw)
To: Francois Romieu
Cc: netdev, Andrew Morton, David S. Miller,
Citizen Lee @fr.zoreil.com
Francois Romieu wrote:
> Spotted-by: Citizen Lee <citizen_lee@thecus.com>
> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
> ---
> drivers/net/r8169.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
> index 5863190..6ee9db1 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);
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-12 22:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-03 22:38 [PATCH 1/1] r8169: fix missing loop variable increment Francois Romieu
2008-01-12 22:41 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).