[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1715007] [NEW] hw/block/onenand.c:520: dead code ?
From: |
dcb |
Subject: |
[Qemu-devel] [Bug 1715007] [NEW] hw/block/onenand.c:520: dead code ? |
Date: |
Mon, 04 Sep 2017 17:48:02 -0000 |
Public bug reported:
qemu/hw/block/onenand.c:520] -> [qemu/hw/block/onenand.c:521]: (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;
}
I am not sure if the if condition can be merely deleted, or something more
complex needs to be implemented.
Recent qemu trunk.
** 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/1715007
Title:
hw/block/onenand.c:520: dead code ?
Status in QEMU:
New
Bug description:
qemu/hw/block/onenand.c:520] -> [qemu/hw/block/onenand.c:521]:
(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;
}
I am not sure if the if condition can be merely deleted, or something more
complex needs to be implemented.
Recent qemu trunk.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1715007/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [Bug 1715007] [NEW] hw/block/onenand.c:520: dead code ?,
dcb <=