Changeset 03d1426 in rtems-libbsd


Ignore:
Timestamp:
May 24, 2017, 11:15:14 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
7ece7548c1b05cf6bb10e6708b83b2401d45c250, 29cc431e0bcfe059d65ac3019f53eeafa5064ae8
Children:
07c8680
Parents:
9da83e7
git-author:
Sebastian Huber <sebastian.huber@…> (05/24/17 11:15:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:06)
Message:

dpaa: No error if MII attach failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/sys/powerpc/drivers/net/ethernet/freescale/dpaa/if_fmanmac.c

    r9da83e7 r03d1426  
    452452                    fman_mac_media_change, fman_mac_media_status,
    453453                    BMSR_DEFCAPMASK, phy_dev->mdio.addr, MII_OFFSET_ANY, 0);
    454                 if (error != 0) {
    455                         goto error_2;
    456                 }
    457                 sc->mii_softc = device_get_softc(sc->miibus);
     454                if (error == 0) {
     455                        sc->mii_softc = device_get_softc(sc->miibus);
     456                }
    458457        }
    459458
     
    467466        return (0);
    468467
    469 error_2:
    470468        if_free(ifp);
    471469error_1:
Note: See TracChangeset for help on using the changeset viewer.