From 0b3023b70ce07d6689311e68035ebfaf072ef123 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 1 Jul 2014 15:43:00 +0800 Subject: [PATCH] ARM: rockchip: pm-rk3288.c fix compilation warning when RK_LAST_LOG is not selected --- arch/arm/mach-rockchip/pm-rk3288.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-rockchip/pm-rk3288.c b/arch/arm/mach-rockchip/pm-rk3288.c index 043f259b4a5e..86fe55a9eca2 100755 --- a/arch/arm/mach-rockchip/pm-rk3288.c +++ b/arch/arm/mach-rockchip/pm-rk3288.c @@ -1347,19 +1347,15 @@ extern void rk_last_log_text(char *text, size_t size); static void ddr_printch(char byte) { - char last_char; - uart_printch(byte); #ifdef CONFIG_RK_LAST_LOG - last_char=byte; - rk_last_log_text(&last_char,1); - - if (byte == '\n') { - last_char='\r'; - rk_last_log_text(&last_char,1); - } - + rk_last_log_text(&byte, 1); + + if (byte == '\n') { + byte = '\r'; + rk_last_log_text(&byte, 1); + } #endif pll_udelay(2); } -- 2.34.1