diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-11 09:26:51 +0300 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2017-09-04 22:04:32 +0300 |
commit | 203308a5d1e96df245a2817ae7f39fa1b8544da4 (patch) | |
tree | a5e24e079c19ed3a83e5bba889e3a61a55e4a334 /arch/alpha/kernel/smc37c669.c | |
parent | 236d62b03a95d70ffe04fbc4cd55a64136f2ee44 (diff) | |
download | linux-203308a5d1e96df245a2817ae7f39fa1b8544da4.tar.xz |
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/smc37c669.c')
-rw-r--r-- | arch/alpha/kernel/smc37c669.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c index c803fc76ae4f..4dbd4e415041 100644 --- a/arch/alpha/kernel/smc37c669.c +++ b/arch/alpha/kernel/smc37c669.c @@ -2007,11 +2007,8 @@ static void __init SMC37c669_config_mode( static unsigned char __init SMC37c669_read_config( unsigned char index ) { - unsigned char data; - - wb( &SMC37c669->index_port, index ); - data = rb( &SMC37c669->data_port ); - return data; + wb(&SMC37c669->index_port, index); + return rb(&SMC37c669->data_port); } /* |