OSDN Git Service

hw/block/nvme: Simplify if-statements a little bit
authorThomas Huth <thuth@redhat.com>
Wed, 12 Oct 2016 15:18:40 +0000 (17:18 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 28 Oct 2016 15:17:23 +0000 (18:17 +0300)
commitf96fe6b5c27b9a66dba71044af0716f3d3e5601f
treeef407a40b4ee9ba73575c683a92422e407ff1e33
parent0a04e11f32cb51d3210007d902e170cc164bb813
hw/block/nvme: Simplify if-statements a little bit

The condition  '!A || (A && B)' is equivalent to '!A || B'.

Buglink: https://bugs.launchpad.net/qemu/+bug/1464611
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/block/nvme.c