aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-11-26 14:47:19 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-11-26 14:47:19 -0800
commit3f6128139092286cf10e32bef8ccf56a004812d2 (patch)
treeee40c7af1478449f732c5c8211d0568899efb1e4 /kernel
parentRevert "vfs: properly and reliably lock f_pos in fdget_pos()" (diff)
parentstacktrace: Get rid of unneeded '!!' pattern (diff)
downloadlinux-dev-3f6128139092286cf10e32bef8ccf56a004812d2.tar.xz
linux-dev-3f6128139092286cf10e32bef8ccf56a004812d2.zip
Merge branch 'core-stacktrace-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull stacktrace cleanup from Ingo Molnar: "A minor cleanup" * 'core-stacktrace-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: stacktrace: Get rid of unneeded '!!' pattern
Diffstat (limited to 'kernel')
-rw-r--r--kernel/stacktrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c
index c9ea7eb2cb1a..2af66e449aa6 100644
--- a/kernel/stacktrace.c
+++ b/kernel/stacktrace.c
@@ -142,7 +142,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store,
.store = store,
.size = size,
/* skip this function if they are tracing us */
- .skip = skipnr + !!(current == tsk),
+ .skip = skipnr + (current == tsk),
};
if (!try_get_task_stack(tsk))
@@ -300,7 +300,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task,
.entries = store,
.max_entries = size,
/* skip this function if they are tracing us */
- .skip = skipnr + !!(current == task),
+ .skip = skipnr + (current == task),
};
save_stack_trace_tsk(task, &trace);