git: 24db9837bee5 - stable/15 - jh7110_gpio: remove unneeded cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Sep 2026 16:29:58 UTC
The branch stable/15 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=24db9837bee5ba35f7c84edded150d5a5a1bfa73
commit 24db9837bee5ba35f7c84edded150d5a5a1bfa73
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2025-08-10 17:16:11 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-09-03 16:29:13 +0000
jh7110_gpio: remove unneeded cleanup
Any failure within bus_alloc_resources() will call bus_release_resources();
thus the call is redundant here.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 2af2ec524957754ff356daea5fa7ee4990c1c3ea)
---
sys/riscv/starfive/jh7110_gpio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys/riscv/starfive/jh7110_gpio.c b/sys/riscv/starfive/jh7110_gpio.c
index 67e64bb29045..fdf40e5c147d 100644
--- a/sys/riscv/starfive/jh7110_gpio.c
+++ b/sys/riscv/starfive/jh7110_gpio.c
@@ -355,7 +355,6 @@ jh7110_gpio_attach(device_t dev)
if (bus_alloc_resources(dev, jh7110_gpio_spec, &sc->res) != 0) {
device_printf(dev, "Could not allocate resources\n");
- bus_release_resources(dev, jh7110_gpio_spec, &sc->res);
mtx_destroy(&sc->mtx);
return (ENXIO);
}