diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-14 18:31:01 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-04 17:13:57 +0300 |
commit | db19462bb7acddd0a9881d75d960974982a454b8 (patch) | |
tree | 13e3dd7d7e4530e9b26fac2e9e99b3ae54410428 /arch/mips/mti-malta/malta-platform.c | |
parent | 60219c563c9b62aac237631a7c9aa092e8396138 (diff) | |
download | linux-db19462bb7acddd0a9881d75d960974982a454b8.tar.xz |
MIPS: Squash lines for simple wrapper functions
Remove unneeded variables and assignments.
Signed-off-by: Masahiro 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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-malta/malta-platform.c')
-rw-r--r-- | arch/mips/mti-malta/malta-platform.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/mips/mti-malta/malta-platform.c b/arch/mips/mti-malta/malta-platform.c index e1dd1c1d3fde..20a53e73b28e 100644 --- a/arch/mips/mti-malta/malta-platform.c +++ b/arch/mips/mti-malta/malta-platform.c @@ -135,13 +135,7 @@ static struct platform_device *malta_devices[] __initdata = { static int __init malta_add_devices(void) { - int err; - - err = platform_add_devices(malta_devices, ARRAY_SIZE(malta_devices)); - if (err) - return err; - - return 0; + return platform_add_devices(malta_devices, ARRAY_SIZE(malta_devices)); } device_initcall(malta_add_devices); |