atapi: Move GET_EVENT_STATUS_NOTIFICATION command handling to its own function
commit493accd624149e9dcf4b89dcbbdbc42621cbc231
authorAmit Shah <amit.shah@redhat.com>
Tue, 12 Apr 2011 16:06:04 +0000 (12 21:36 +0530)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Apr 2011 10:20:31 +0000 (13 12:20 +0200)
treef82b37c78ef1c22e9ecb370cf8dc9da701848725
parent0c370a35498bf9e300a035864bee7ce8460da669
atapi: Move GET_EVENT_STATUS_NOTIFICATION command handling to its own function

This makes the code more readable.

Also, there's a block like:

if () {
  ...
} else {
  ...
}

Split that into

if () {
  ...
  return;
}
...

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c