summaryrefslogtreecommitdiffstats
path: root/arch/unicore32/kernel/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/unicore32/kernel/module.c')
-rw-r--r--arch/unicore32/kernel/module.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/unicore32/kernel/module.c b/arch/unicore32/kernel/module.c
index 8fbe8577f5e..16bd1495b93 100644
--- a/arch/unicore32/kernel/module.c
+++ b/arch/unicore32/kernel/module.c
@@ -27,9 +27,6 @@ void *module_alloc(unsigned long size)
struct vm_struct *area;
size = PAGE_ALIGN(size);
- if (!size)
- return NULL;
-
area = __get_vm_area(size, VM_ALLOC, MODULES_VADDR, MODULES_END);
if (!area)
return NULL;