Skip to content

GitLab

  • Menu
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
  • kernel
  • exit.c
Find file BlameHistoryPermalink
  • Oleg Nesterov's avatar
    do_wait: simplify retval/tsk_result/notask_error mess · 64a16caf
    Oleg Nesterov authored Jun 17, 2009
    
    
    Now that we don't pass &retval down to other helpers we can simplify
    the code more.
    
    - kill tsk_result, just use retval
    
    - add the "notask" label right after the main loop, and
      s/got end/goto notask/ after the fastpath pid check.
    
      This way we don't need to initialize retval before this
      check and the code becomes a bit more clean, if this pid
      has no attached tasks we should just skip the list search.
    Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Acked-by: default avatarRoland McGrath <roland@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    64a16caf

Replace exit.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.