qemu/hw/block/onenand.c:522: strange if statement ?

Bug #1720971 reported by dcb
This bug report is a duplicate of:  Bug #1715007: hw/block/onenand.c:520: dead code ?. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
New
Undecided
Unassigned

Bug Description

[qemu/hw/block/onenand.c:523]: (warning) Opposite inner 'if' condition leads to a dead code block.

Source code is

       for (b = 0; b < s->blocks; b ++) {
            if (b >= s->blocks) {
                s->status |= ONEN_ERR_CMD;
                break;
            }

Inner if condition will never be true.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.