Re: [PATCH] tmscsim: INQUIRY always only untagged

Christoph Hellwig
2004-10-01T22:36:04Z

> + if (pcmd->cmnd[0] == INQUIRY &&
> + (pcmd->result == (DID_OK << 16) || status_byte(pcmd->result) & CHECK_CONDITION) &&
> + (ptr->DevType & SCSI_DEVTYPE) != TYPE_NODEV)
> + /* device found: add */
> + pDCB->DevType = ptr->DevType & SCSI_DEVTYPE;

instead of ptr->DevType you can use the 'device' field in struct scsi_device.
In fact the dcb DevType field should go away aswell in favour of that one.