git: 90a6a07dde22 - stable/13 - mv_rtc_attach: eliminate write only unit variable

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:16 UTC
The branch stable/13 has been updated by imp:

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

commit 90a6a07dde2284c6af6ee708e70029b32e476b47
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:29 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:51 +0000

    mv_rtc_attach: eliminate write only unit variable
    
    Sponsored by:           Netflix
    
    (cherry picked from commit b20f0f724734b8dddde2957b39c92720a63430ac)
---
 sys/arm/mv/armada38x/armada38x_rtc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/arm/mv/armada38x/armada38x_rtc.c b/sys/arm/mv/armada38x/armada38x_rtc.c
index ff89094194a7..d6f2073b414a 100644
--- a/sys/arm/mv/armada38x/armada38x_rtc.c
+++ b/sys/arm/mv/armada38x/armada38x_rtc.c
@@ -208,9 +208,7 @@ static int
 mv_rtc_attach(device_t dev)
 {
 	struct mv_rtc_softc *sc;
-	int unit, ret;
-
-	unit = device_get_unit(dev);
+	int ret;
 
 	sc = device_get_softc(dev);
 	sc->dev = dev;