Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe
  • Repository
  • ipipe
  • lib
  • mpi
  • mpicoder.c
Find file BlameHistoryPermalink
  • Nicolai Stange's avatar
    lib/mpi: mpi_write_sgl(): fix style issue with lzero decrement · 654842ef
    Nicolai Stange authored Mar 22, 2016
    
    
    Within the copying loop in mpi_write_sgl(), we have
    
      if (lzeros > 0) {
        ...
        lzeros -= sizeof(alimb);
      }
    
    However, at this point, lzeros < sizeof(alimb) holds. Make this fact
    explicit by rewriting the above to
    
      if (lzeros) {
        ...
        lzeros = 0;
      }
    
    Signed-off-by: default avatarNicolai Stange <nicstange@gmail.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    654842ef

Imprint & Privacy Policy