The '__maybe_unused' attribute prevents the compiler from warning about an unused variable and the 'static' will remove it entirely if it's not used. This patch is only cosmetic.
Signed-off-by: Juergen Beisert <j...@pengutronix.de> --- drivers/serial/serial_s3c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c index 125c06b..a2b8e56 100644 --- a/drivers/serial/serial_s3c.c +++ b/drivers/serial/serial_s3c.c @@ -58,7 +58,6 @@ static unsigned s3c_get_arch_uart_input_clock(void __iomem *base) return s3c_get_uart_clk(UCON_GET_CLK_SRC(reg)); } -#ifdef S3C_UART_HAS_UBRDIVSLOT /* * This table takes the fractional value of the baud divisor and gives * the recommended setting for the UDIVSLOT register. Refer the datasheet @@ -68,7 +67,6 @@ static const uint16_t udivslot_table[] __maybe_unused = { 0x0000, 0x0080, 0x0808, 0x0888, 0x2222, 0x4924, 0x4A52, 0x54AA, 0x5555, 0xD555, 0xD5D5, 0xDDD5, 0xDDDD, 0xDFDD, 0xDFDF, 0xFFDF, }; -#endif static int s3c_serial_setbaudrate(struct console_device *cdev, int baudrate) { -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox