projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b87b7
)
[SCSI] zfcp: fix the data buffer accessor patch
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Wed, 8 Aug 2007 08:47:26 +0000
(10:47 +0200)
committer
James 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
patch
|
blob
|
history
diff --git
a/drivers/s390/scsi/zfcp_qdio.c
b/drivers/s390/scsi/zfcp_qdio.c
index 81daa8204bfeeda745cedd8838093b52a40d850e..c6899efdc8f66fd8633ec03b38993b43762dd86b 100644
(file)
--- 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);
}
/**