]> err.no Git - linux-2.6/commitdiff
[SCSI] Remove full sg table memset()
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 17 Oct 2007 11:42:11 +0000 (13:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 17 Oct 2007 11:42:11 +0000 (13:42 +0200)
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>
drivers/scsi/scsi_lib.c

index aac8a02cbe8040348d8383d8551514a619598b2d..0c86be71bb33773d504a325270deaf00b88655a2 100644 (file)
@@ -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
                 */