[Bug 229510] src/sys/arm/freescale/vybrid/vf_ehci.c:393: duplicate condition ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 4 10:41:03 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229510
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 at FreeBSD.org
Reporter: dcb314 at 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 &= ~EHCI_SCFLG_DONEINIT;
}
Is the sc_flags field volatile and is changed by some other thread ?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-arm
mailing list