mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 14:45:19 +00:00
[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>
This commit is contained in:
parent
ee69ab7af3
commit
fb121b067b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue