Skip to contentSkip to conversation

common/lcd.c: reduce one CONFIG_LCD_LOGO ifdef

PATCH New Anatolij Gustschin 1 participant 2 messages Apr 27, 2012 – May 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 common/lcd.c: reduce one CONFIG_LCD_LOGO ifdef

Drop ifdef around bitmap_plot().

---
 common/lcd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
common/lcd.c +3 -3
index ab78525..fe3545a 100644
@@ -594,6 +594,8 @@ void bitmap_plot (int x, int y)
 
 	WATCHDOG_RESET();
 }
+#else
+static inline void bitmap_plot(int x, int y) {}
 #endif /* CONFIG_LCD_LOGO */
 
 /*----------------------------------------------------------------------*/
@@ -839,9 +841,7 @@ static void *lcd_logo (void)
 	}
 #endif /* CONFIG_SPLASH_SCREEN */
 
-#ifdef CONFIG_LCD_LOGO
-	bitmap_plot (0, 0);
-#endif /* CONFIG_LCD_LOGO */
+	bitmap_plot(0, 0);
 
 #ifdef CONFIG_LCD_INFO
 	console_col = LCD_INFO_X / VIDEO_FONT_WIDTH;
Signature · 1 line
1.7.7.6