]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - kernel/stacktrace.c
Merge tag 's390-5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[mirror_ubuntu-jammy-kernel.git] / kernel / stacktrace.c
index c9ea7eb2cb1a321e0896a9f49398c273968da52d..2af66e449aa6a818e7573311e8b821cd597952be 100644 (file)
@@ -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);