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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to