Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xcap-capability-linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
Switch branch/tag
  • xcap-capability-linux
  • drivers
  • scsi
  • scsi_lib.c
Find file BlameHistoryPermalink
  • Chen, Kenneth W's avatar
    [SCSI] Redundant memset in scsi_alloc_sgtable · 0f34e3f5
    Chen, Kenneth W authored Jul 12, 2005
    
    
    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: default avatarKen Chen <kenneth.w.chen@intel.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
    0f34e3f5