diff options
Diffstat (limited to 'results/classifier/105/semantic/1497711')
| -rw-r--r-- | results/classifier/105/semantic/1497711 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/results/classifier/105/semantic/1497711 b/results/classifier/105/semantic/1497711 new file mode 100644 index 00000000..e725d50a --- /dev/null +++ b/results/classifier/105/semantic/1497711 @@ -0,0 +1,50 @@ +semantic: 0.958 +graphic: 0.803 +device: 0.783 +socket: 0.754 +vnc: 0.750 +mistranslation: 0.747 +network: 0.718 +other: 0.664 +instruction: 0.613 +boot: 0.466 +assembly: 0.412 +KVM: 0.334 + +tests/libqos/ahci.c:745: redundant condition ? + +[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)); + +On Sun, Sep 20, 2015 at 10:08:49AM -0000, dcb wrote: +> 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 address hidden> +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." + + Signed-off-by: John Snow <email address hidden> + Message-id: <email address hidden> + |