aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2024-09-03 10:25:34 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2024-09-30 05:05:39 +0000
commiteded71c830ee9cb85dee897418e47e2828116eb1 (patch)
tree168fbb3460f8732727096a65ab10f45dc3acd121
parent36fb983d227decf10b26b666000fa69e832eb641 (diff)
downloadsrc-eded71c830ee9cb85dee897418e47e2828116eb1.tar.gz
src-eded71c830ee9cb85dee897418e47e2828116eb1.zip
sdhci(4): Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit f80483cdd58a032ae2cfb2b9119824e9badc2c91) (cherry picked from commit 5a7db2ff56f9e08579913ae16850ff82617001dc)
-rw-r--r--sys/dev/sdhci/sdhci_xenon_acpi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sdhci/sdhci_xenon_acpi.c b/sys/dev/sdhci/sdhci_xenon_acpi.c
index 8699b26cff68..f130f03fc572 100644
--- a/sys/dev/sdhci/sdhci_xenon_acpi.c
+++ b/sys/dev/sdhci/sdhci_xenon_acpi.c
@@ -88,8 +88,6 @@ sdhci_xenon_acpi_attach(device_t dev)
memset(&mmc_helper, 0, sizeof(mmc_helper));
slot = malloc(sizeof(*slot), M_DEVBUF, M_ZERO | M_WAITOK);
- if (!slot)
- return (ENOMEM);
/*
* Don't use regularators.