Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/kmemleak: remove unreachable return statement in scan_should_stop()

Patch series "mm/kmemleak: Improve scan_should_stop() implementation".

This series improves the scan_should_stop() function by addressing code
quality issues and enhancing kernel thread detection robustness.


This patch (of 2):

Remove unreachable "return 0;" statement as all execution paths return
before reaching it.

No functional change.

Link: https://lkml.kernel.org/r/20260130093729.2045858-2-zhongqiu.han@oss.qualcomm.com
Signed-off-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Zhongqiu Han and committed by
Andrew Morton
fc9ef297 ae1a645d

+1 -3
+1 -3
mm/kmemleak.c
··· 1507 1507 */ 1508 1508 if (current->mm) 1509 1509 return signal_pending(current); 1510 - else 1511 - return kthread_should_stop(); 1512 1510 1513 - return 0; 1511 + return kthread_should_stop(); 1514 1512 } 1515 1513 1516 1514 /*