Skip to content

Commit 3f61281

Browse files
committed
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
2 parents 2be7d34 + 4b48512 commit 3f61281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/stacktrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store,
142142
.store = store,
143143
.size = size,
144144
/* skip this function if they are tracing us */
145-
.skip = skipnr + !!(current == tsk),
145+
.skip = skipnr + (current == tsk),
146146
};
147147

148148
if (!try_get_task_stack(tsk))
@@ -300,7 +300,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task,
300300
.entries = store,
301301
.max_entries = size,
302302
/* skip this function if they are tracing us */
303-
.skip = skipnr + !!(current == task),
303+
.skip = skipnr + (current == task),
304304
};
305305

306306
save_stack_trace_tsk(task, &trace);

0 commit comments

Comments
 (0)