ARM: rockchip: pm-rk3288.c fix compilation warning when RK_LAST_LOG is not selected
author黄涛 <huangtao@rock-chips.com>
Tue, 1 Jul 2014 07:43:00 +0000 (15:43 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 1 Jul 2014 07:47:53 +0000 (15:47 +0800)
arch/arm/mach-rockchip/pm-rk3288.c

index 043f259b4a5e0c69c14c8cfbd605a104544bc7e8..86fe55a9eca2fd8e4de63b7d58b45a394491e1c7 100755 (executable)
@@ -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);
 }