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: b...@freebsd.org
          Reporter: dcb...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to