Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • stacktrace.c
Find file BlameHistoryPermalink
  • Jiri Slaby's avatar
    stacktrace: Get rid of unneeded '!!' pattern · 4b48512c
    Jiri Slaby authored Nov 11, 2019
    My commit b0c51f15
    
     ("stacktrace: Don't skip first entry on
    noncurrent tasks") adds one or zero to skipnr by "!!(current == tsk)".
    
    But the C99 standard says:
    
      The == (equal to) and != (not equal to) operators are
      ...
      Each of the operators yields 1 if the specified relation is true and 0
      if it is false.
    
    So there is no need to prepend the above expression by "!!" -- remove it.
    
    Reported-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: https://lkml.kernel.org/r/20191111092647.27419-1-jslaby@suse.cz
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    4b48512c
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7