git: fdf3e570362a - main - sdhci: Remove redundant device_get_softc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Aug 2026 15:28:06 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=fdf3e570362ab1a37cfe8870bf5a29a087992081
commit fdf3e570362ab1a37cfe8870bf5a29a087992081
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-08-21 14:04:31 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-08-21 15:27:55 +0000
sdhci: Remove redundant device_get_softc
Fixes: 550db3d6f502 ("sdhci: Initial support for the SpacemiT K1 sdhci controller")
Reviewed by: bnovkov
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59083
---
sys/dev/sdhci/sdhci_fdt_spacemit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/sdhci/sdhci_fdt_spacemit.c b/sys/dev/sdhci/sdhci_fdt_spacemit.c
index d516ce60f889..32203ff0c076 100644
--- a/sys/dev/sdhci/sdhci_fdt_spacemit.c
+++ b/sys/dev/sdhci/sdhci_fdt_spacemit.c
@@ -104,7 +104,7 @@ sdhci_fdt_spacemit_attach(device_t dev)
static int
sdhci_fdt_spacemit_set_clock(device_t dev, struct sdhci_slot *slot, int clock)
{
- struct sdhci_fdt_softc *sc = device_get_softc(dev);
+ struct sdhci_fdt_softc *sc;
uint64_t freq;
sc = device_get_softc(dev);