Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jul 2018 10:41:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [Bug 229510] src/sys/arm/freescale/vybrid/vf_ehci.c:393: duplicate condition ?
Message-ID:  <bug-229510-7@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229510

            Bug ID: 229510
           Summary: src/sys/arm/freescale/vybrid/vf_ehci.c:393: duplicate
                    condition ?
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: dcb314@hotmail.com

src/sys/arm/freescale/vybrid/vf_ehci.c:393] ->
[src/sys/arm/freescale/vybrid/vf_ehci.c:399]: (warning) Identical condition
'sc->sc_flags&EHCI_SCFLG_DONEINIT', second condition is always false

Source code is

        if (sc->sc_flags & EHCI_SCFLG_DONEINIT)
                return (0);

        /*
         * only call ehci_detach() after ehci_init()
         */
        if (sc->sc_flags & EHCI_SCFLG_DONEINIT) {
                ehci_detach(sc);
                sc->sc_flags &=3D ~EHCI_SCFLG_DONEINIT;
        }

Is the sc_flags field volatile and is changed by some other thread ?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229510-7>