Skip to content

Commit

Permalink
Merge branch 'core-stacktrace-for-linus' of git://git.kernel.org/pub/…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Linus Torvalds committed Nov 26, 2019
2 parents 2be7d34 + 4b48512 commit 3f61281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/stacktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3f61281

Please sign in to comment.