Date: Sun, 2 Oct 2022 04:29:16 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 90a6a07dde22 - stable/13 - mv_rtc_attach: eliminate write only unit variable Message-ID: <202210020429.2924TGSi057943@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210020429.2924TGSi057943>