Browse Source

[SCSI] Remove full sg table memset()

We don't need to do that anymore, since blk_rq_map_sg() clears
individual entries.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
FUJITA Tomonori 17 years ago
parent
commit
f5c0dde4c6
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/scsi/scsi_lib.c

+ 0 - 2
drivers/scsi/scsi_lib.c

@@ -764,8 +764,6 @@ struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *cmd, gfp_t gfp_mask)
 		if (unlikely(!sgl))
 			goto enomem;
 
-		memset(sgl, 0, sizeof(*sgl) * sgp->size);
-
 		/*
 		 * first loop through, set initial index and return value
 		 */