Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b1192d5ebab2f1664295a748b6ee6e89f3b07188
Commit:     b1192d5ebab2f1664295a748b6ee6e89f3b07188
Parent:     5bc65793cbf8da0d35f19ef025dda22887e79e80
Author:     FUJITA Tomonori <[EMAIL PROTECTED]>
AuthorDate: Thu May 31 15:24:03 2007 +0900
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Thu May 31 08:23:02 2007 -0500

    [SCSI] 3w-9xxx: eliminate missed map_single path
    
    This removes the remaining unnecessary map_single path
    
    Signed-off-by: FUJITA Tomonori <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/3w-9xxx.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c
index 113aaed..76c0909 100644
--- a/drivers/scsi/3w-9xxx.c
+++ b/drivers/scsi/3w-9xxx.c
@@ -1902,17 +1902,11 @@ out:
 static void twa_scsiop_execute_scsi_complete(TW_Device_Extension *tw_dev, int 
request_id)
 {
        struct scsi_cmnd *cmd = tw_dev->srb[request_id];
-       int use_sg = scsi_sg_count(cmd);
 
        if (scsi_bufflen(cmd) < TW_MIN_SGL_LENGTH &&
            (cmd->sc_data_direction == DMA_FROM_DEVICE ||
             cmd->sc_data_direction == DMA_BIDIRECTIONAL)) {
-               if (!use_sg)
-                       memcpy(scsi_sglist(cmd),
-                              tw_dev->generic_buffer_virt[request_id],
-                              scsi_bufflen(cmd));
-
-               if (use_sg == 1) {
+               if (scsi_sg_count(cmd) == 1) {
                        struct scatterlist *sg = 
scsi_sglist(tw_dev->srb[request_id]);
                        char *buf;
                        unsigned long flags = 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

Reply via email to