Skip to content

Commit

Permalink
[SCSI] zfcp: fix return code of zfcp_scsi_slave_alloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas Herrmann authored and James Bottomley committed Dec 1, 2005
1 parent ee69ab7 commit fb121b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/scsi/zfcp_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb121b0

Please sign in to comment.