diff options
Diffstat (limited to 'arch/um/kernel/process.c')
-rw-r--r-- | arch/um/kernel/process.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index c7ea7f2a8945..91bd68eaba20 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
@@ -60,8 +60,6 @@ unsigned long alloc_stack(int order, int atomic) | |||
60 | if (atomic) | 60 | if (atomic) |
61 | flags = GFP_ATOMIC; | 61 | flags = GFP_ATOMIC; |
62 | page = __get_free_pages(flags, order); | 62 | page = __get_free_pages(flags, order); |
63 | if (page == 0) | ||
64 | return 0; | ||
65 | 63 | ||
66 | return page; | 64 | return page; |
67 | } | 65 | } |
@@ -331,7 +329,7 @@ void do_uml_exitcalls(void) | |||
331 | (*call)(); | 329 | (*call)(); |
332 | } | 330 | } |
333 | 331 | ||
334 | char *uml_strdup(char *string) | 332 | char *uml_strdup(const char *string) |
335 | { | 333 | { |
336 | return kstrdup(string, GFP_KERNEL); | 334 | return kstrdup(string, GFP_KERNEL); |
337 | } | 335 | } |