[SCSI] ibmvscsi: remove unnecessary map_sg check

2007-08-06 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ed3a3633b798a15281f9c9a89a7e74d4bdd02ebe
Commit: ed3a3633b798a15281f9c9a89a7e74d4bdd02ebe
Parent: 7936a892e72498a05b9a7fb1fec6506d65c8e435
Author: FUJITA Tomonori <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 23 09:28:39 2007 +0900
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 10:31:55 2007 -0500

[SCSI] ibmvscsi: remove unnecessary map_sg check

No need to check use_sg since sg_tablesize is set appropriately in the
scsi host template.

Brian King's patch (2a7309372fe56ae46c499b772d811ad31c501dd9) did this
cleanup but the data buffer accessors patch (written before the patch
and merged after it) restored the check.

Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]>
Acked-by: Brian King <[EMAIL PROTECTED]>
Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/ibmvscsi/ibmvscsi.c |6 --
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index 5870866..6735260 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -393,12 +393,6 @@ static int map_sg_data(struct scsi_cmnd *cmd,
return 1;
else if (sg_mapped < 0)
return 0;
-   else if (sg_mapped > SG_ALL) {
-   printk(KERN_ERR
-  "ibmvscsi: More than %d mapped sg entries, got %d\n",
-  SG_ALL, sg_mapped);
-   return 0;
-   }
 
set_srp_direction(cmd, srp_cmd, sg_mapped);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[SCSI] ibmvscsi: Remove unnecessary map_sg check

2007-07-15 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2a7309372fe56ae46c499b772d811ad31c501dd9
Commit: 2a7309372fe56ae46c499b772d811ad31c501dd9
Parent: 0ea7154fbc740e8c44f6175fc44c4e56fbbbdc0f
Author: Brian King <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 13 17:12:11 2007 -0500
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Sun Jun 17 15:51:45 2007 -0500

[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 <[EMAIL PROTECTED]>
Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/ibmvscsi/ibmvscsi.c |7 ---
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index b580af9..d91837c 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html