mirror of https://gitee.com/openkylin/qemu.git
spapr_vscsi: remove duplicate condition check
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b0f49d1387
commit
ec8929a555
|
@ -690,7 +690,7 @@ static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req)
|
|||
int rc, len, alen;
|
||||
|
||||
/* We dont do EVPD. Also check that page_code is 0 */
|
||||
if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) {
|
||||
if ((cdb[1] & 0x01) || cdb[2] != 0) {
|
||||
/* Send INVALID FIELD IN CDB */
|
||||
vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0);
|
||||
vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0);
|
||||
|
|
Loading…
Reference in New Issue