Date: Tue, 5 Apr 2022 04:32:03 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: b20f0f724734 - main - mv_rtc_attach: eliminate write only unit variable Message-ID: <202204050432.2354W3HC008502@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354W3HC008502>