]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] zfcp: fix the data buffer accessor patch
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 8 Aug 2007 08:47:26 +0000 (10:47 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Wed, 15 Aug 2007 17:28:44 +0000 (12:28 -0500)
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>
drivers/s390/scsi/zfcp_qdio.c

index 81daa8204bfeeda745cedd8838093b52a40d850e..c6899efdc8f66fd8633ec03b38993b43762dd86b 100644 (file)
@@ -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);
 }
 
 /**