aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/pci.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-11 15:26:51 +0900
committerMatt Turner <mattst88@gmail.com>2017-09-04 12:04:32 -0700
commit203308a5d1e96df245a2817ae7f39fa1b8544da4 (patch)
treea5e24e079c19ed3a83e5bba889e3a61a55e4a334 /arch/alpha/kernel/pci.c
parentalpha: kernel: Use vma_pages() (diff)
downloadlinux-dev-203308a5d1e96df245a2817ae7f39fa1b8544da4.tar.xz
linux-dev-203308a5d1e96df245a2817ae7f39fa1b8544da4.zip
alpha: squash lines for immediate return
Remove unneeded variables and assignments. While we are here, fix the coding style of SMC37c669_read_config(): - replace whitespaces at the start of lines with tabs - remove unneeded whitespaces around parentheses Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/kernel/pci.c')
-rw-r--r--arch/alpha/kernel/pci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c
index 5f387ee5b5c5..8322df174bbf 100644
--- a/arch/alpha/kernel/pci.c
+++ b/arch/alpha/kernel/pci.c
@@ -379,11 +379,7 @@ alloc_pci_controller(void)
struct resource * __init
alloc_resource(void)
{
- struct resource *res;
-
- res = alloc_bootmem(sizeof(*res));
-
- return res;
+ return alloc_bootmem(sizeof(struct resource));
}