From 63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 6 Sep 2016 22:17:38 +0900 Subject: arch, board: squash lines for immediate return Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada Reviewed-by: Minkyu Kang Reviewed-by: Angelo Dureghello --- board/freescale/common/zm7300.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'board/freescale') diff --git a/board/freescale/common/zm7300.c b/board/freescale/common/zm7300.c index be5953a..a6c3e69 100644 --- a/board/freescale/common/zm7300.c +++ b/board/freescale/common/zm7300.c @@ -140,9 +140,7 @@ int dpm_wrp(u8 r, u8 d) /* Uses the DPM command RRP */ u8 zm_read(uchar reg) { - u8 d; - d = dpm_rrp(reg); - return d; + return dpm_rrp(reg); } /* ZM_write -- -- cgit v1.1