tests/libqos/ahci.c:745: redundant condition ?
Public bug reported:
[qemu/tests/libqos/ahci.c:745]: (style) Redundant condition: props.ncq. '!props.ncq || (props.ncq && props.lba48)' is equivalent to '!props.ncq || props.lba48'
g_assert(!props->ncq || (props->ncq && props->lba48));
** Affects: qemu
Importance: Undecided
Status: New
Signature · 19 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1497711
Title:
tests/libqos/ahci.c:745: redundant condition ?
Status in QEMU:
New
Bug description:
[qemu/tests/libqos/ahci.c:745]: (style) Redundant condition:
props.ncq. '!props.ncq || (props.ncq && props.lba48)' is equivalent to
'!props.ncq || props.lba48'
g_assert(!props->ncq || (props->ncq && props->lba48));
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1497711/+subscriptionsQuoted 7 lines · dcb
Public bug reported:
[
qemu/tests/libqos/ahci.c:745]: (style) Redundant condition: props.ncq. '!props.ncq || (props.ncq && props.lba48)' is equivalent to '!props.ncq || props.lba48'g_assert(!props->ncq || (props->ncq && props->lba48));
CCing John Snow, AHCI maintainer
Fixed in:
commit 3d937150dce20cb95cbaae99b6fd48dca4261f32
Author: John Snow <[email protected]> Date: Mon Oct 5 12:00:55 2015 -0400
qtest/ahci: fix redundant assertion
Fixes https://bugs.launchpad.net/qemu/+bug/1497711
(!ncq || (ncq && lba48)) is the same as
(!ncq || lba48).
The intention is simply: "If a command is NCQ, it must also be LBA48."
Message-id: [email protected]
** Changed in: qemu
Status: New => Fix Committed
Signature · 19 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1497711
Title:
tests/libqos/ahci.c:745: redundant condition ?
Status in QEMU:
Fix Committed
Bug description:
[qemu/tests/libqos/ahci.c:745]: (style) Redundant condition:
props.ncq. '!props.ncq || (props.ncq && props.lba48)' is equivalent to
'!props.ncq || props.lba48'
g_assert(!props->ncq || (props->ncq && props->lba48));
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1497711/+subscriptions** Changed in: qemu
Status: Fix Committed => Fix Released
Signature · 19 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1497711
Title:
tests/libqos/ahci.c:745: redundant condition ?
Status in QEMU:
Fix Released
Bug description:
[qemu/tests/libqos/ahci.c:745]: (style) Redundant condition:
props.ncq. '!props.ncq || (props.ncq && props.lba48)' is equivalent to
'!props.ncq || props.lba48'
g_assert(!props->ncq || (props->ncq && props->lba48));
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1497711/+subscriptions