diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-26 14:47:19 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-26 14:47:19 -0800 |
commit | 3f6128139092286cf10e32bef8ccf56a004812d2 (patch) | |
tree | ee40c7af1478449f732c5c8211d0568899efb1e4 /kernel | |
parent | 2be7d348fe924f0c5583c6a805bd42cecda93104 (diff) | |
parent | 4b48512c2e9c63b62d7da23563cdb224b4d61d72 (diff) | |
download | linux-3f6128139092286cf10e32bef8ccf56a004812d2.tar.bz2 |
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.c | 4 |
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); |