git: d3ef3c4cf818 - main - XHCI: remove a self-assignment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Aug 2022 22:50:43 UTC
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);