summaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi
diff options
context:
space:
mode:
authorAndreas Herrmann <aherrman@de.ibm.com>2005-12-01 02:49:29 +0100
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-01 15:59:49 -0600
commitfb121b067be77a9927e9453e427cf5819eb8ef01 (patch)
treee19e29eab14f081f3ce28dc000a0f856bede3719 /drivers/s390/scsi
parentee69ab7af3cd68423e389272e1276718d4cd8ebc (diff)
downloadblackbird-op-linux-fb121b067be77a9927e9453e427cf5819eb8ef01.tar.gz
blackbird-op-linux-fb121b067be77a9927e9453e427cf5819eb8ef01.zip
[SCSI] zfcp: fix return code of zfcp_scsi_slave_alloc
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>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r--drivers/s390/scsi/zfcp_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c
index 3dcd1bfba3b4..66608d13a634 100644
--- a/drivers/s390/scsi/zfcp_scsi.c
+++ b/drivers/s390/scsi/zfcp_scsi.c
@@ -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)
OpenPOWER on IntegriCloud