Skip to content

Commit 6d18b48

Browse files
committed
cpsw(4): Finish conversion to IfAPI
Two ifnet accesses were missed in 2c7bc0f. Sponsored by: Juniper Networks, Inc.
1 parent 5692850 commit 6d18b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/arm/ti/cpsw/if_cpsw.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ cpsw_ports_down(struct cpsw_softc *sc)
11361136
ifp1 = psc->ifp;
11371137
psc = device_get_softc(sc->port[1].dev);
11381138
ifp2 = psc->ifp;
1139-
if ((ifp1->if_flags & IFF_UP) == 0 && (ifp2->if_flags & IFF_UP) == 0)
1139+
if ((if_getflags(ifp1) & IFF_UP) == 0 && (if_getflags(ifp2) & IFF_UP) == 0)
11401140
return (1);
11411141

11421142
return (0);

0 commit comments

Comments
 (0)