Commit db19462b authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Ralf Baechle

MIPS: Squash lines for simple wrapper functions

Remove unneeded variables and assignments.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14260/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 60219c56
...@@ -115,11 +115,7 @@ static inline unsigned long fd_getfdaddr1(void) ...@@ -115,11 +115,7 @@ static inline unsigned long fd_getfdaddr1(void)
static inline unsigned long fd_dma_mem_alloc(unsigned long size) static inline unsigned long fd_dma_mem_alloc(unsigned long size)
{ {
unsigned long mem; return __get_dma_pages(GFP_KERNEL, get_order(size));
mem = __get_dma_pages(GFP_KERNEL, get_order(size));
return mem;
} }
static inline void fd_dma_mem_free(unsigned long addr, unsigned long size) static inline void fd_dma_mem_free(unsigned long addr, unsigned long size)
......
...@@ -67,11 +67,7 @@ static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) ...@@ -67,11 +67,7 @@ static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
unsigned long address) unsigned long address)
{ {
pte_t *pte; return (pte_t *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, PTE_ORDER);
pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_ZERO, PTE_ORDER);
return pte;
} }
static inline struct page *pte_alloc_one(struct mm_struct *mm, static inline struct page *pte_alloc_one(struct mm_struct *mm,
......
...@@ -135,13 +135,7 @@ static struct platform_device *malta_devices[] __initdata = { ...@@ -135,13 +135,7 @@ static struct platform_device *malta_devices[] __initdata = {
static int __init malta_add_devices(void) static int __init malta_add_devices(void)
{ {
int err; return platform_add_devices(malta_devices, ARRAY_SIZE(malta_devices));
err = platform_add_devices(malta_devices, ARRAY_SIZE(malta_devices));
if (err)
return err;
return 0;
} }
device_initcall(malta_add_devices); device_initcall(malta_add_devices);
...@@ -232,12 +232,8 @@ static struct platform_device *pnx833x_platform_devices[] __initdata = { ...@@ -232,12 +232,8 @@ static struct platform_device *pnx833x_platform_devices[] __initdata = {
static int __init pnx833x_platform_init(void) static int __init pnx833x_platform_init(void)
{ {
int res; return platform_add_devices(pnx833x_platform_devices,
ARRAY_SIZE(pnx833x_platform_devices));
res = platform_add_devices(pnx833x_platform_devices,
ARRAY_SIZE(pnx833x_platform_devices));
return res;
} }
arch_initcall(pnx833x_platform_init); arch_initcall(pnx833x_platform_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment