* [PATCH] um: Remove double zero check
@ 2024-10-30 7:26 Shaojie Dong
2024-10-30 7:31 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Shaojie Dong @ 2024-10-30 7:26 UTC (permalink / raw)
To: Richard Weinberger, Anton Ivanov, Johannes Berg
Cc: Benjamin Berg, Tiwei Bie, Shaojie Dong, linux-um, linux-kernel
free_pages() performs a parameter null check inside
therefore remove double zero check here.
Signed-off-by: Shaojie Dong <quic_shaojied@quicinc.com>
---
arch/um/kernel/skas/mmu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c
index d3fb506d5bd6..0eb5a1d3ba70 100644
--- a/arch/um/kernel/skas/mmu.c
+++ b/arch/um/kernel/skas/mmu.c
@@ -46,8 +46,7 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)
return 0;
out_free:
- if (new_id->stack != 0)
- free_pages(new_id->stack, ilog2(STUB_DATA_PAGES));
+ free_pages(new_id->stack, ilog2(STUB_DATA_PAGES));
out:
return ret;
}
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] um: Remove double zero check
2024-10-30 7:26 [PATCH] um: Remove double zero check Shaojie Dong
@ 2024-10-30 7:31 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2024-10-30 7:31 UTC (permalink / raw)
To: Shaojie Dong, Richard Weinberger, Anton Ivanov
Cc: Benjamin Berg, Tiwei Bie, linux-um, linux-kernel
On Wed, 2024-10-30 at 15:26 +0800, Shaojie Dong wrote:
> free_pages() performs a parameter null check inside
> therefore remove double zero check here.
>
Ok, so, I get it, you want to make some cleanup - but you've just send
pretty much the same patch *six* times (although most of them were
incorrectly addressed) - if you want to find something to experiment
with please do it elsewhere.
(And also, why resend this again _without_ a new version?)
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-30 7:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-30 7:26 [PATCH] um: Remove double zero check Shaojie Dong
2024-10-30 7:31 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®