[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1720971] [NEW] qemu/hw/block/onenand.c:522: strange if
From: |
dcb |
Subject: |
[Qemu-devel] [Bug 1720971] [NEW] qemu/hw/block/onenand.c:522: strange if statement ? |
Date: |
Tue, 03 Oct 2017 08:31:11 -0000 |
Public bug reported:
[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.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1720971
Title:
qemu/hw/block/onenand.c:522: strange if statement ?
Status in QEMU:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1720971/+subscriptions
- [Qemu-devel] [Bug 1720971] [NEW] qemu/hw/block/onenand.c:522: strange if statement ?,
dcb <=