]> git.proxmox.com Git - mirror_qemu.git/commit
nvme: remove superfluous check
authorGonglei <arei.gonglei@huawei.com>
Sat, 15 Nov 2014 10:06:44 +0000 (18:06 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2014 10:43:09 +0000 (11:43 +0100)
commit720fdd6fa92df9041316e94816ab7e56abaed4e9
tree01d117f64c72f3f6f628ef45b6ed165d25343bc9
parentddd2eab72fbd383a56f439bf278c6d647abd4f54
nvme: remove superfluous check

Operands don't affect result (CONSTANT_EXPRESSION_RESULT)
((n->bar.aqa >> AQA_ASQS_SHIFT) & AQA_ASQS_MASK) > 4095
is always false regardless of the values of its operands.
This occurs as the logical second operand of '||'.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/nvme.c