git: b20f0f724734 - main - mv_rtc_attach: eliminate write only unit variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:03 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b20f0f724734b8dddde2957b39c92720a63430ac commit b20f0f724734b8dddde2957b39c92720a63430ac Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-04 23:55:30 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:29:13 +0000 mv_rtc_attach: eliminate write only unit variable Sponsored by: Netflix --- 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;