Date: Sun, 7 Aug 2022 22:50:43 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d3ef3c4cf818 - main - XHCI: remove a self-assignment Message-ID: <202208072250.277Moh1q049385@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d3ef3c4cf818b1aac6a51402ec27b6762d9feb1f commit d3ef3c4cf818b1aac6a51402ec27b6762d9feb1f Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-08-07 22:46:55 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-08-07 22:46:55 +0000 XHCI: remove a self-assignment x = x is an unneeded operation, remove it. The value is read and assigned above for real. MFC after: 4 weeks --- sys/dev/usb/controller/xhci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 039750cb0874..045be9a40b99 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -581,7 +581,6 @@ xhci_init(struct xhci_softc *sc, device_t self, uint8_t dma32) return (ENXIO); } - sc->sc_noport = sc->sc_noport; sc->sc_noslot = XHCI_HCS1_DEVSLOT_MAX(temp); DPRINTF("Max slots: %u\n", sc->sc_noslot);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208072250.277Moh1q049385>