git: fdf3e570362a - main - sdhci: Remove redundant device_get_softc

Ed Maste <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a886e86.3a695.2622d7ca__16751.6566043318$1787326126$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=fdf3e570362ab1a37cfe8870bf5a29a087992081

commit fdf3e570362ab1a37cfe8870bf5a29a087992081
Author:     Ed Maste <[email protected]>
AuthorDate: 2026-08-21 14:04:31 +0000
Commit:     Ed Maste <[email protected]>
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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.