summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-07-14 05:30:48 +0000
committerwpaul <wpaul@FreeBSD.org>2000-07-14 05:30:48 +0000
commit2aba3f4e60574726a59168354ff75e7a26a43f08 (patch)
tree46a625e34752775632e304274799cf5cd65a5589 /sys/pci/if_sis.c
parent9563771e2ec79d5dc1d43fd2a740d44043025260 (diff)
downloadFreeBSD-src-2aba3f4e60574726a59168354ff75e7a26a43f08.zip
FreeBSD-src-2aba3f4e60574726a59168354ff75e7a26a43f08.tar.gz
sis_miibus_writereg() was checking for SIS_TYPE_900 and phy != 0 twice
due to a small cut & paste-o on my part. It happens this didn't hurt anything, but it's still wrong.
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 9f7bb1e..a8c2e16 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -428,9 +428,6 @@ static int sis_miibus_writereg(dev, phy, reg, data)
if (sc->sis_type == SIS_TYPE_900 && phy != 0)
return(0);
- if (sc->sis_type == SIS_TYPE_900 && phy != 0)
- return(0);
-
CSR_WRITE_4(sc, SIS_PHYCTL, (data << 16) | (phy << 11) |
(reg << 6) | SIS_PHYOP_WRITE);
SIS_SETBIT(sc, SIS_PHYCTL, SIS_PHYCTL_ACCESS);
OpenPOWER on IntegriCloud