cxgbe(4): Stop checking for failures from malloc/mb_alloc_ext_pgs(M_WAITOK)

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 955b380365af174b3d35905b7b8afae97506a0bd)
This commit is contained in:
Zhenlei Huang 2024-09-03 18:25:26 +08:00
parent 9216ba1853
commit 09ed34449c
2 changed files with 0 additions and 8 deletions

View file

@ -842,9 +842,6 @@ cxgbei_activate(struct adapter *sc)
/* per-adapter softc for iSCSI */
ci = malloc(sizeof(*ci), M_CXGBE, M_ZERO | M_WAITOK);
if (ci == NULL)
return (ENOMEM);
rc = cxgbei_init(sc, ci);
if (rc != 0) {
free(ci, M_CXGBE);

View file

@ -2125,11 +2125,6 @@ alloc_aiotx_mbuf(struct kaiocb *job, int len)
break;
m = mb_alloc_ext_pgs(M_WAITOK, aiotx_free_pgs);
if (m == NULL) {
vm_page_unhold_pages(pgs, npages);
break;
}
m->m_epg_1st_off = pgoff;
m->m_epg_npgs = npages;
if (npages == 1) {