ide-test: cdrom_pio_impl fixup
commita421f3c38509ee4ce47230ec68c5c3a184efb538
authorJohn Snow <jsnow@redhat.com>
Fri, 20 Nov 2015 22:53:55 +0000 (20 17:53 -0500)
committerJohn Snow <jsnow@redhat.com>
Tue, 24 Nov 2015 19:51:43 +0000 (24 14:51 -0500)
treea7841f8b6d1e2df49dde230d996d23dc5a3726fa
parent4b6eda626fdb8bf90472c6868d502a2ac09abeeb
ide-test: cdrom_pio_impl fixup

Final tidying: move the interrupt wait into the loop,
document that the status read clears the IRQ, and move
the final interrupt check outside of the loop.

This should be functionally equivalent to how it works
currently, but a little less ambiguous and slightly more
explicit about the state transitions.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1448060035-31973-3-git-send-email-jsnow@redhat.com
tests/ide-test.c