[SCSI] zfcp: fix return code of zfcp_scsi_slave_alloc
authorAndreas Herrmann <aherrman@de.ibm.com>
Thu, 1 Dec 2005 01:49:29 +0000 (02:49 +0100)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 1 Dec 2005 21:59:49 +0000 (15:59 -0600)
Change return code in slave_alloc to avoid irritating error message from
scsi_alloc_sdev() when scsi stack tries target scan.

Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/s390/scsi/zfcp_scsi.c

index 3dcd1bfba3b4862835bb1eab8d4542dec8a9409a..66608d13a63497b40c4b6002bfad94d30c014728 100644 (file)
@@ -179,7 +179,7 @@ zfcp_scsi_slave_alloc(struct scsi_device *sdp)
        struct zfcp_adapter *adapter;
        struct zfcp_unit *unit;
        unsigned long flags;
-       int retval = -ENODEV;
+       int retval = -ENXIO;
 
        adapter = (struct zfcp_adapter *) sdp->host->hostdata[0];
        if (!adapter)