diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 13:17:38 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 21:53:53 (GMT) |
commit | 63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4 (patch) | |
tree | 3c8e952ed36bd39aa138f5edf476e17d73fbea63 /arch/arm/mach-zynq/cpu.c | |
parent | 7dc0789579b17859c61c085e4562b7985f05cc4d (diff) | |
download | u-boot-63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4.tar.xz |
arch, board: squash lines for immediate return
Remove unneeded variables and assignments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Diffstat (limited to 'arch/arm/mach-zynq/cpu.c')
-rw-r--r-- | arch/arm/mach-zynq/cpu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-zynq/cpu.c b/arch/arm/mach-zynq/cpu.c index 914b1fe..ba9171e 100644 --- a/arch/arm/mach-zynq/cpu.c +++ b/arch/arm/mach-zynq/cpu.c @@ -43,12 +43,8 @@ int arch_cpu_init(void) unsigned int zynq_get_silicon_version(void) { - unsigned int ver; - - ver = (readl(&devcfg_base->mctrl) & - ZYNQ_SILICON_VER_MASK) >> ZYNQ_SILICON_VER_SHIFT; - - return ver; + return (readl(&devcfg_base->mctrl) & ZYNQ_SILICON_VER_MASK) + >> ZYNQ_SILICON_VER_SHIFT; } void reset_cpu(ulong addr) |