hw/block/onenand: Remove dead code block
authorThomas Huth <thuth@redhat.com>
Tue, 3 Oct 2017 09:57:24 +0000 (11:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
commitdbfa934106d22402d809d039e773b50ab1885477
tree924ab49c9362633250f6b2392ee7e972d1c68818
parentca759622441da1d19107efaa62d9d63fb83ebb79
hw/block/onenand: Remove dead code block

The condition of the for-loop makes sure that b is always smaller
than s->blocks, so the "if (b >= s->blocks)" statement is completely
superfluous here.

Buglink: https://bugs.launchpad.net/qemu/+bug/1715007
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/onenand.c