diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-09-05 20:47:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-09-05 20:47:50 +0000 |
commit | 681083a28d218bb1afdc631b9cb493de7c868dd2 (patch) | |
tree | 3ad10204a160198b421fd0d227860eb5afd9270a /sys/dev | |
parent | 969eedbbaa6935eaf8907e1c037e338de5ec68a8 (diff) |
Fix previous commit.
ok millert@, sf@, deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_em_hw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_em_hw.c b/sys/dev/pci/if_em_hw.c index 8f2bdd63ab0..8747e3ab44e 100644 --- a/sys/dev/pci/if_em_hw.c +++ b/sys/dev/pci/if_em_hw.c @@ -31,7 +31,7 @@ *******************************************************************************/ -/* $OpenBSD: if_em_hw.c,v 1.103 2019/09/05 08:41:20 sf Exp $ */ +/* $OpenBSD: if_em_hw.c,v 1.104 2019/09/05 20:47:49 kettenis Exp $ */ /* * if_em_hw.c Shared functions for accessing and configuring the MAC */ @@ -5734,7 +5734,7 @@ em_match_gig_phy(struct em_hw *hw) STATIC int32_t em_detect_gig_phy(struct em_hw *hw) { - int32_t ret_val; + int32_t ret_val, i; DEBUGFUNC("em_detect_gig_phy"); if (hw->phy_id != 0) @@ -5810,7 +5810,7 @@ em_detect_gig_phy(struct em_hw *hw) } /* Read the PHY ID Registers to identify which PHY is onboard. */ - for (int i = 1; i < 4; i++) { + for (i = 1; i < 4; i++) { /* * hw->phy_addr may be modified down in the call stack, * we can't use it as loop variable. |