ahci: Check cmd_fis[1] more explicitly
authorJohn Snow <jsnow@redhat.com>
Mon, 3 Nov 2014 23:56:18 +0000 (18:56 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 14 Nov 2014 09:20:35 +0000 (09:20 +0000)
commit102e56254dbf5f789e43d7eb29023f296cb67536
tree4cb511e450e5bda73ed9f4a2752c36a6148cc57f
parent36ab3c3400ac941e4d9afc044be08143ff9eea62
ahci: Check cmd_fis[1] more explicitly

Instead of checking for a known byte, inspect the
fields of this byte explicitly to produce more meaningful
error messages and improve the readability of this section.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1415058979-16604-5-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/ahci.c