]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] Redundant memset in scsi_alloc_sgtable
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Wed, 13 Jul 2005 00:06:14 +0000 (17:06 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 14 Jul 2005 15:24:12 +0000 (11:24 -0400)
commit0f34e3f53378a11c9ecba0f8165da50e8b01d53f
tree51249a9aa0443133c0c8eb88c127cf98bed9b37f
parent2f4701d8274c8663f5c50323dc72fefa24b55091
[SCSI] Redundant memset in scsi_alloc_sgtable

scsi_init_io calls scsi_alloc_sgtable and then calls blk_rq_map_sg
to initialize the scatterlist structure.  blk_rq_map_sg() already
memset the structure for every new segment.  That makes the memset
in scsi_alloc_sgtable unnecessary.

Patch to delete the extra memset in scsi_alloc_sgtable.  Tested on
a x86_64 machine.  Looks stable to me.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c