[Bug 229722] src/sys/arm/broadcom/bcm2835/bcm2835_sdhost.c:1022: faulty logic ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jul 12 11:02:25 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229722
Bug ID: 229722
Summary: src/sys/arm/broadcom/bcm2835/bcm2835_sdhost.c:1022:
faulty logic ?
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
src/sys/arm/broadcom/bcm2835/bcm2835_sdhost.c:1026]: (warning) Opposite inner
'if' condition leads to a dead code block.
Source code is
for (i = 0; i < count;) {
edm = RD4(sc, HC_DEBUG);
avail = ((edm >> 4) & 0x1f);
if (i + avail > count) {
if (i >= count)
return;
else
avail = count - i;
return statement can never execute.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list