summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ibmvscsi
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2007-06-14 00:12:11 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-06-17 22:51:45 +0200
commit2a7309372fe56ae46c499b772d811ad31c501dd9 (patch)
treed000f69cc8fc62071c039fa75c99e28e62614c98 /drivers/scsi/ibmvscsi
parent[SCSI] i2o: convert to use the data buffer accessors (diff)
downloadlinux-2a7309372fe56ae46c499b772d811ad31c501dd9.tar.xz
linux-2a7309372fe56ae46c499b772d811ad31c501dd9.zip
[SCSI] ibmvscsi: Remove unnecessary map_sg check
Since sg_tablesize is set appropriately in the scsi host template, remove the unnecessary check to make sure it is not exceeded following the dma_map_sg call. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ibmvscsi')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvscsi.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index b580af95956b..d91837caa42b 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -408,13 +408,6 @@ static int map_sg_data(struct scsi_cmnd *cmd,
return 1;
}
- if (sg_mapped > SG_ALL) {
- printk(KERN_ERR
- "ibmvscsi: More than %d mapped sg entries, got %d\n",
- SG_ALL, sg_mapped);
- return 0;
- }
-
indirect->table_desc.va = 0;
indirect->table_desc.len = sg_mapped * sizeof(struct srp_direct_buf);
indirect->table_desc.key = 0;