From: Chen, Kenneth W Date: Wed, 13 Jul 2005 00:06:14 +0000 (-0700) Subject: [SCSI] Redundant memset in scsi_alloc_sgtable X-Git-Tag: v2.6.13-rc4~75^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f34e3f53378a11c9ecba0f8165da50e8b01d53f;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed