Skip to contentSkip to conversation

zfcp: fix return code of zfcp_scsi_slave_alloc

PATCH New Andreas Herrmann 1 participant 1 message Dec 1, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/4 zfcp: fix return code of zfcp_scsi_slave_alloc

From: Andreas Herrmann <[email protected]>

[patch 4/4] 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.

drivers/s390/scsi/zfcp_scsi.c +1 -1
diff -Nurp linux-2.6.15-rc3/drivers/s390/scsi/zfcp_scsi.c linux-2.6.x/drivers/s390/scsi/zfcp_scsi.c
@@ -179,7 +179,7 @@ zfcp_scsi_slave_alloc(struct scsi_device
 	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)