summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-06 22:17:39 +0900
committerTom Rini <trini@konsulko.com>2016-09-23 17:53:54 -0400
commita4ca3799c2edf2b805f804a07d234a9e5eaae60f (patch)
treedb22263ba5173bafedd9cca35307e1d99ef96df2 /drivers/block
parent63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4 (diff)
downloadu-boot-a4ca3799c2edf2b805f804a07d234a9e5eaae60f.tar.gz
drivers: squash lines for immediate return
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/sym53c8xx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/block/sym53c8xx.c b/drivers/block/sym53c8xx.c
index 5daede7279..50043e68af 100644
--- a/drivers/block/sym53c8xx.c
+++ b/drivers/block/sym53c8xx.c
@@ -284,9 +284,8 @@ void scsi_low_level_init(int busdevfunc)
*/
unsigned long swap_script(unsigned long val)
{
- unsigned long tmp;
- tmp = ((val>>24)&0xff) | ((val>>8)&0xff00) | ((val<<8)&0xff0000) | ((val<<24)&0xff000000);
- return tmp;
+ return ((val >> 24) & 0xff) | ((val >> 8) & 0xff00) |
+ ((val << 8) & 0xff0000) | ((val << 24) & 0xff000000);
}