diff options
author | Chen, Kenneth W <kenneth.w.chen@intel.com> | 2005-07-13 02:06:14 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-07-14 17:24:12 +0200 |
commit | 0f34e3f53378a11c9ecba0f8165da50e8b01d53f (patch) | |
tree | 51249a9aa0443133c0c8eb88c127cf98bed9b37f /drivers/scsi/mvme147.h | |
parent | [SCSI] add int_to_scsilun() function (diff) | |
download | linux-0f34e3f53378a11c9ecba0f8165da50e8b01d53f.tar.xz linux-0f34e3f53378a11c9ecba0f8165da50e8b01d53f.zip |
[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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions