diff options
author | Li Qiang <liq3ea@163.com> | 2020-08-15 07:19:39 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-30 19:09:20 +0200 |
commit | 5ecfbae201d68a2f13df233260c77b0a25d7cd35 (patch) | |
tree | 6b7a804842be0d193af65a632a1bef7071ac357b /ui | |
parent | afff2db61f6ace9bb2c4d81c7c57601f5c009acd (diff) | |
download | qemu-5ecfbae201d68a2f13df233260c77b0a25d7cd35.zip qemu-5ecfbae201d68a2f13df233260c77b0a25d7cd35.tar.gz qemu-5ecfbae201d68a2f13df233260c77b0a25d7cd35.tar.bz2 |
hw: megasas: return -1 when 'megasas_map_sgl' fails
The caller of 'megasas_map_sgl' will only check if the return
is zero or not. If it return 0 it means success, as in the next
patch we will consider 'iov_count=0' is an error, so let's
return -1 to indicate a failure.
Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20200815141940.44025-2-liq3ea@163.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions