lsi: avoid redundant tests of s->current != NULL
commit8f6e699ddbcad32480fa64796ccf44cbaf5b4b91
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2012 15:07:40 +0000 (2 17:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:08 +0000 (26 17:44 +0200)
tree687223392c78ddda5ea9a3c2db9192213f60d7de
parentd2a9998f8864e6f816262d9416d8b538186a8cad
lsi: avoid redundant tests of s->current != NULL

Simplify the code by checking against req->hba_private directly,
and asserting that it is non-NULL before a command is completed
or canceled.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/lsi53c895a.c