Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-x86
  • Repository
Switch branch/tag
  • ipipe-x86
  • drivers
  • net
  • ethernet
  • broadcom
  • bnxt
  • bnxt.c
Find file BlameHistoryPermalink
  • Michael Chan's avatar
    bnxt_en: Optimize ring alloc and ring free functions. · edd0c2cc
    Michael Chan authored Dec 27, 2015
    
    
    Remove the unnecessary "if" statement before the "for" statement:
    
    if (x) {
            for (i = 0; i < x; i++)
    ...
    }
    
    Also, change the ring free function to return void as it only returns 0.
    Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    edd0c2cc

Imprint & Privacy Policy