]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/kmemleak: remove unreachable return statement in scan_should_stop()
authorZhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Fri, 30 Jan 2026 09:37:28 +0000 (17:37 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 5 Apr 2026 20:53:02 +0000 (13:53 -0700)
commitfc9ef2978d440162f507f70cbc351006af9a77d4
treef92e8ae6d280b6f252a3187f35975f0a66685469
parentae1a645def136e23b81330763edb76c554ce6e23
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>
mm/kmemleak.c