aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorGravatar Heiko Carstens <heiko.carstens@de.ibm.com> 2007-08-08 10:47:26 +0200
committerGravatar James Bottomley <jejb@mulgrave.localdomain> 2007-08-15 12:28:44 -0500
commit9d212a4d20928f865b9a48e870d6ecef0e30175d (patch)
treec5acc9d18514616ae0b325cb7dff7f1f01529955 /drivers/s390
parent[SCSI] zfcp: allocate gid_pn_data objects from gid_pn_cache (diff)
downloadlinux-9d212a4d20928f865b9a48e870d6ecef0e30175d.tar.gz
linux-9d212a4d20928f865b9a48e870d6ecef0e30175d.tar.bz2
linux-9d212a4d20928f865b9a48e870d6ecef0e30175d.zip
[SCSI] zfcp: fix the data buffer accessor patch
Fix the data buffer accessor patch. For request without a data buffer nothing was written into a SBALE. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/scsi/zfcp_qdio.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/s390/scsi/zfcp_qdio.c b/drivers/s390/scsi/zfcp_qdio.c
index 81daa8204bfe..c6899efdc8f6 100644
--- a/drivers/s390/scsi/zfcp_qdio.c
+++ b/drivers/s390/scsi/zfcp_qdio.c
@@ -640,13 +640,9 @@ int
zfcp_qdio_sbals_from_scsicmnd(struct zfcp_fsf_req *fsf_req,
unsigned long sbtype, struct scsi_cmnd *scsi_cmnd)
{
- if (scsi_sg_count(scsi_cmnd))
- return zfcp_qdio_sbals_from_sg(fsf_req, sbtype,
- scsi_sglist(scsi_cmnd),
- scsi_sg_count(scsi_cmnd),
- ZFCP_MAX_SBALS_PER_REQ);
- else
- return 0;
+ return zfcp_qdio_sbals_from_sg(fsf_req, sbtype, scsi_sglist(scsi_cmnd),
+ scsi_sg_count(scsi_cmnd),
+ ZFCP_MAX_SBALS_PER_REQ);
}
/**