Index: head/sys/dev/sfxge/sfxge_mcdi.c =================================================================== --- head/sys/dev/sfxge/sfxge_mcdi.c +++ head/sys/dev/sfxge/sfxge_mcdi.c @@ -250,10 +250,6 @@ } mcdibuf = malloc(SFXGE_MCDI_MAX_PAYLOAD, M_TEMP, M_WAITOK | M_ZERO); - if (mcdibuf == NULL) { - rc = ENOMEM; - goto fail4; - } if ((rc = copyin(ip->u.mcdi.payload, mcdibuf, ip->u.mcdi.len)) != 0) { goto fail5; } @@ -292,7 +288,6 @@ fail6: fail5: free(mcdibuf, M_TEMP); -fail4: fail3: fail2: fail1: Index: head/sys/dev/sfxge/sfxge_nvram.c =================================================================== --- head/sys/dev/sfxge/sfxge_nvram.c +++ head/sys/dev/sfxge/sfxge_nvram.c @@ -75,10 +75,6 @@ goto fail1; buf = malloc(chunk_size, M_TEMP, M_WAITOK); - if (buf == NULL) { - rc = ENOMEM; - goto fail2; - } off = 0; while (total_size) { @@ -108,7 +104,6 @@ fail3: free(buf, M_TEMP); -fail2: efx_nvram_rw_finish(enp, type); fail1: return (rc);