Commit 3f612813 authored by Linus Torvalds's avatar Linus Torvalds

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
parents 2be7d348 4b48512c
...@@ -142,7 +142,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store, ...@@ -142,7 +142,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store,
.store = store, .store = store,
.size = size, .size = size,
/* skip this function if they are tracing us */ /* skip this function if they are tracing us */
.skip = skipnr + !!(current == tsk), .skip = skipnr + (current == tsk),
}; };
if (!try_get_task_stack(tsk)) if (!try_get_task_stack(tsk))
...@@ -300,7 +300,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task, ...@@ -300,7 +300,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task,
.entries = store, .entries = store,
.max_entries = size, .max_entries = size,
/* skip this function if they are tracing us */ /* skip this function if they are tracing us */
.skip = skipnr + !!(current == task), .skip = skipnr + (current == task),
}; };
save_stack_trace_tsk(task, &trace); save_stack_trace_tsk(task, &trace);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment