diff options
author | Paolo Bonzini | 2012-07-02 17:07:40 +0200 |
---|---|---|
committer | Paolo Bonzini | 2012-07-26 17:44:08 +0200 |
commit | 8f6e699ddbcad32480fa64796ccf44cbaf5b4b91 (patch) | |
tree | 687223392c78ddda5ea9a3c2db9192213f60d7de /qemu-common.h | |
parent | lsi: introduce lsi_request_free (diff) | |
download | qemu-8f6e699ddbcad32480fa64796ccf44cbaf5b4b91.tar.gz qemu-8f6e699ddbcad32480fa64796ccf44cbaf5b4b91.tar.xz qemu-8f6e699ddbcad32480fa64796ccf44cbaf5b4b91.zip |
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>
Diffstat (limited to 'qemu-common.h')
0 files changed, 0 insertions, 0 deletions