summaryrefslogtreecommitdiffstats
path: root/lib/kasprintf.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-11-11 10:26:47 +0100
committerIngo Molnar <mingo@kernel.org>2019-11-11 10:30:59 +0100
commit4b48512c2e9c63b62d7da23563cdb224b4d61d72 (patch)
treea59be5f1465744855193a24005c3c8572b4f51e2 /lib/kasprintf.c
parent31f4f5b495a62c9a8b15b1c3581acd5efeb9af8c (diff)
downloadlinux-stable-4b48512c2e9c63b62d7da23563cdb224b4d61d72.tar.gz
linux-stable-4b48512c2e9c63b62d7da23563cdb224b4d61d72.tar.bz2
linux-stable-4b48512c2e9c63b62d7da23563cdb224b4d61d72.zip
stacktrace: Get rid of unneeded '!!' pattern
My commit b0c51f158455 ("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: Joe Perches <joe@perches.com> Signed-off-by: Jiri 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: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions