Remove unreachable "return 0;" statement as all execution paths return before reaching it. No functional change. Signed-off-by: Zhongqiu Han --- mm/kmemleak.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index fe33f2edfe07..fb0022f34393 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -1509,10 +1509,8 @@ static int scan_should_stop(void) */ if (current->mm) return signal_pending(current); - else - return kthread_should_stop(); - return 0; + return kthread_should_stop(); } /* -- 2.43.0