Skip to contentSkip to conversation

serial: bfin_uart: Remove redundant testing for ifdef CONFIG_SERIAL_BFIN_MODULE

PATCH In review Axel Lin 2 participants 2 messages Jul 15, 2013 TTY layer and serial drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 serial: bfin_uart: Remove redundant testing for ifdef CONFIG_SERIAL_BFIN_MODULE

No idea why we have redundant testing for ifdef CONFIG_SERIAL_BFIN_MODULE, check it once is enough.

---
 drivers/tty/serial/bfin_uart.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/tty/serial/bfin_uart.c +0 -4
index 26a3be7..72031d7 100644
@@ -41,10 +41,6 @@
 # undef CONFIG_EARLY_PRINTK
 #endif
 
-#ifdef CONFIG_SERIAL_BFIN_MODULE
-# undef CONFIG_EARLY_PRINTK
-#endif
-
 /* UART name and device definitions */
 #define BFIN_SERIAL_DEV_NAME	"ttyBF"
 #define BFIN_SERIAL_MAJOR	204
Signature · 1 line
1.8.1.2
Acked-by on v1 1/1
#1 lore raw
Quoted 37 lines

-----Original Message-----
From: Axel Lin [mailto:[email protected]]
Sent: Monday, July 15, 2013 1:36 PM
To: Jiri Slaby; Greg Kroah-Hartman
Cc: Zhang, Sonic; [email protected]; linux- [email protected]
Subject: [PATCH] serial: bfin_uart: Remove redundant testing for ifdef CONFIG_SERIAL_BFIN_MODULE

No idea why we have redundant testing for ifdef CONFIG_SERIAL_BFIN_MODULE, check it once is enough.

---
drivers/tty/serial/bfin_uart.c | 4 ----

1 file changed, 4 deletions(-)
drivers/tty/serial/bfin_uart.c index renamed from drivers/tty/serial/bfin_uart.c +0 -0

26a3be7..72031d7 100644

drivers/tty/serial/bfin_uart.c +0 -5
@@ -41,10 +41,6 @@
 # undef CONFIG_EARLY_PRINTK
 #endif
 
-#ifdef CONFIG_SERIAL_BFIN_MODULE
-# undef CONFIG_EARLY_PRINTK
-#endif
-
 /* UART name and device definitions */
 #define BFIN_SERIAL_DEV_NAME  "ttyBF"
 #define BFIN_SERIAL_MAJOR     204
--

1.8.1.2