static void scsi_read_data(SCSIDevice *d, uint32_t tag)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);

    SCSIDiskReq *r;



    r = scsi_find_request(s, tag);

    if (!r) {

        BADF("Bad read tag 0x%x\n", tag);

        /* ??? This is the wrong error.  */

        scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);

        return;

    }



    scsi_read_request(r);

}

static void scsi_read_data(SCSIDevice *d, uint32_t tag)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);

    SCSIDiskReq *r;



    r = scsi_find_request(s, tag);

    if (!r) {

        BADF("Bad read tag 0x%x\n", tag);

        

        scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);

        return;

    }



    scsi_read_request(r);

}

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag); static void scsi_read_data(SCSIDevice *d, uint32_t tag)     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     if (!r) {         BADF("Bad read tag 0x%x\n", tag);         scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);     scsi_read_request(r);     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     if (!r) {         scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     if (!r) {     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     r = scsi_find_request(s, tag); static void scsi_read_data(SCSIDevice *d, uint32_t tag)     r = scsi_find_request(s, tag);     if (!r) {         BADF("Bad read tag 0x%x\n", tag);     r = scsi_find_request(s, tag);     if (!r) {     r = scsi_find_request(s, tag);     if (!r) {     r = scsi_find_request(s, tag);
static void FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);

    SCSIDiskReq *r;



    r = scsi_find_request(s, VAR_1);

    if (!r) {

        BADF("Bad read VAR_1 0x%x\n", VAR_1);

        

        scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);

        return;

    }



    scsi_read_request(r);

}

static void FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)
{ SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0); SCSIDiskReq *r; r = scsi_find_request(s, VAR_1); if (!r) { BADF("Bad read VAR_1 0x%x\n", VAR_1); scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR); return; } scsi_read_request(r); }