Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2022 14:01:00 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c147c214e6ef - stable/13 - XHCI: remove a self-assignment
Message-ID:  <202209211401.28LE103m099466@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=c147c214e6ef810bcf2bcdb5dab26963b61dcd08

commit c147c214e6ef810bcf2bcdb5dab26963b61dcd08
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-08-07 22:46:55 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-09-21 11:39:03 +0000

    XHCI: remove a self-assignment
    
    x = x is an unneeded operation, remove it.
    The value is read and assigned above for real.
    
    (cherry picked from commit d3ef3c4cf818b1aac6a51402ec27b6762d9feb1f)
---
 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 2d7894264860..17458e7d47dc 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -636,7 +636,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?202209211401.28LE103m099466>