From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] tmscsim: INQUIRY always only untagged Date: Fri, 1 Oct 2004 23:35:54 +0100 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20041001233554.B8853@infradead.org> References: <20040904233835.A18659@infradead.org> <1094398979.10977.9.camel@mulgrave> <20040905173134.A31521@infradead.org> <1094422949.10977.15.camel@mulgrave> <20040906110150.A4845@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from imladris.demon.co.uk ([193.237.130.41]:19974 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S266684AbUJAWgE (ORCPT ); Fri, 1 Oct 2004 18:36:04 -0400 Content-Disposition: inline In-Reply-To: ; from g.liakhovetski@gmx.de on Fri, Oct 01, 2004 at 11:04:17PM +0200 List-Id: linux-scsi@vger.kernel.org To: Guennadi Liakhovetski Cc: James Bottomley , SCSI Mailing List > + 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.