]> err.no Git - linux-2.6/commitdiff
[SCSI] ibmvscsi: Remove unnecessary map_sg check
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 13 Jun 2007 22:12:11 +0000 (17:12 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 17 Jun 2007 20:51:45 +0000 (15:51 -0500)
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>
drivers/scsi/ibmvscsi/ibmvscsi.c

index b580af95956bf79b64d26809a961fad799af40b2..d91837caa42b30acb41bdd84b736c35ed3b6be4f 100644 (file)
@@ -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;