ahci: assert is_ncq for process_ncq
authorJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:04 +0000 (02:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:04 +0000 (02:06 -0400)
commit922f893e57da24bc80db3e79bea56485d1c111fa
treea87bf538dc4a8b5b6cccc47d690dd5e5ea5aa862
parent4614619ee4ad96d2715dc41f9430fb43335c15d2
ahci: assert is_ncq for process_ncq

We already checked this in the handle_cmd phase, so just
change this to an assertion and simplify the error logic.

(Also, fix the switch indent, because checkpatch.pl yelled.)
((Sorry for churn.))

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435767578-32743-4-git-send-email-jsnow@redhat.com
hw/ide/ahci.c