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>
This commit is contained in:
Masahiro Yamada 2016-09-11 15:26:51 +09:00 committed by Matt Turner
parent 236d62b03a
commit 203308a5d1
3 changed files with 4 additions and 15 deletions

View file

@ -42,11 +42,7 @@ alloc_pci_controller(void)
struct resource * __init struct resource * __init
alloc_resource(void) alloc_resource(void)
{ {
struct resource *res; return alloc_bootmem(sizeof(struct resource));
res = alloc_bootmem(sizeof(*res));
return res;
} }
asmlinkage long asmlinkage long

View file

@ -379,11 +379,7 @@ alloc_pci_controller(void)
struct resource * __init struct resource * __init
alloc_resource(void) alloc_resource(void)
{ {
struct resource *res; return alloc_bootmem(sizeof(struct resource));
res = alloc_bootmem(sizeof(*res));
return res;
} }

View file

@ -2007,11 +2007,8 @@ static void __init SMC37c669_config_mode(
static unsigned char __init SMC37c669_read_config( static unsigned char __init SMC37c669_read_config(
unsigned char index ) unsigned char index )
{ {
unsigned char data; wb(&SMC37c669->index_port, index);
return rb(&SMC37c669->data_port);
wb( &SMC37c669->index_port, index );
data = rb( &SMC37c669->data_port );
return data;
} }
/* /*