From: Andreas Herrmann Date: Thu, 1 Dec 2005 01:49:29 +0000 (+0100) Subject: [SCSI] zfcp: fix return code of zfcp_scsi_slave_alloc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb121b067be77a9927e9453e427cf5819eb8ef01;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 3dcd1bfba3b..66608d13a63 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)