Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/allwinner fix the other strcmp too



details:   https://anonhg.NetBSD.org/src/rev/6b0ac24f5410
branches:  trunk
changeset: 333091:6b0ac24f5410
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 18 11:23:17 2014 +0000

description:
fix the other strcmp too

diffstat:

 sys/arch/arm/allwinner/awin_gige.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 5aab3ca49a20 -r 6b0ac24f5410 sys/arch/arm/allwinner/awin_gige.c
--- a/sys/arch/arm/allwinner/awin_gige.c        Sat Oct 18 11:02:14 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_gige.c        Sat Oct 18 11:23:17 2014 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.10 2014/10/18 11:02:14 martin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.11 2014/10/18 11:23:17 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -134,7 +134,7 @@
                phy_type = "rgmii";
        if (strcmp(phy_type, "rgmii") == 0) {
                clkreg = AWIN_GMAC_CLK_PIT | AWIN_GMAC_CLK_TCS_INT_RGMII;
-       } else if (strcmp(phy_type, "mii")) {
+       } else if (strcmp(phy_type, "mii") == 0) {
                clkreg = AWIN_GMAC_CLK_TCS_MII;
        } else {
                panic("unknown phy type '%s'", phy_type);



Home | Main Index | Thread Index | Old Index