Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2024 13:26:43 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4ee7b8e1ef3c - stable/14 - dpaa: uma_zcreate() does not fail
Message-ID:  <202405021326.442DQhSI080645@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=4ee7b8e1ef3c5f8ee0b2853fc719f9bf186577ee

commit 4ee7b8e1ef3c5f8ee0b2853fc719f9bf186577ee
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-04-23 16:18:21 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-05-02 13:25:08 +0000

    dpaa: uma_zcreate() does not fail
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit 964064937ea04519bd400668dc1ce38848d50901)
---
 sys/dev/dpaa/if_dtsec_rm.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/dev/dpaa/if_dtsec_rm.c b/sys/dev/dpaa/if_dtsec_rm.c
index 63ae0504782d..b213a259b5bc 100644
--- a/sys/dev/dpaa/if_dtsec_rm.c
+++ b/sys/dev/dpaa/if_dtsec_rm.c
@@ -116,8 +116,6 @@ dtsec_rm_fi_pool_init(struct dtsec_softc *sc)
 	sc->sc_fi_zone = uma_zcreate(sc->sc_fi_zname,
 	    sizeof(struct dtsec_rm_frame_info), NULL, NULL, NULL, NULL,
 	    UMA_ALIGN_PTR, 0);
-	if (sc->sc_fi_zone == NULL)
-		return (EIO);
 
 	return (0);
 }
@@ -313,8 +311,6 @@ dtsec_rm_pool_rx_init(struct dtsec_softc *sc)
 
 	sc->sc_rx_zone = uma_zcreate(sc->sc_rx_zname, FM_PORT_BUFFER_SIZE, NULL,
 	    NULL, NULL, NULL, FM_PORT_BUFFER_SIZE - 1, 0);
-	if (sc->sc_rx_zone == NULL)
-		return (EIO);
 
 	sc->sc_rx_pool = bman_pool_create(&sc->sc_rx_bpid, FM_PORT_BUFFER_SIZE,
 	    0, 0, DTSEC_RM_POOL_RX_MAX_SIZE, dtsec_rm_pool_rx_get_buffer,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405021326.442DQhSI080645>