Commit f5c0dde4 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by Jens Axboe
Browse files

[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: default avatarJens Axboe <jens.axboe@oracle.com>
parent c79d88b7
......@@ -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
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment