Skip to content

Commit 0b0ad25

Browse files
Shaojie Dongjmberg-intel
authored andcommitted
um: Remove double zero check
free_pages() performs a parameter null check inside therefore remove double zero check here. Signed-off-by: Shaojie Dong <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent d3b08e5 commit 0b0ad25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/um/kernel/skas/mmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ int init_new_context(struct task_struct *task, struct mm_struct *mm)
4646
return 0;
4747

4848
out_free:
49-
if (new_id->stack != 0)
50-
free_pages(new_id->stack, ilog2(STUB_DATA_PAGES));
49+
free_pages(new_id->stack, ilog2(STUB_DATA_PAGES));
5150
out:
5251
return ret;
5352
}

0 commit comments

Comments
 (0)