[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260130093729.2045858-2-zhongqiu.han@oss.qualcomm.com>
Date: Fri, 30 Jan 2026 17:37:28 +0800
From: Zhongqiu Han <zhongqiu.han@....qualcomm.com>
To: catalin.marinas@....com, akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
zhongqiu.han@....qualcomm.com
Subject: [PATCH 1/2] mm/kmemleak: Remove unreachable return statement in scan_should_stop()
Remove unreachable "return 0;" statement as all execution paths return
before reaching it.
No functional change.
Signed-off-by: Zhongqiu Han <zhongqiu.han@....qualcomm.com>
---
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
Powered by blists - more mailing lists