Skip to content

Commit

Permalink
drivers: tty: serial: sb1250-duart: fix missing parentheses
Browse files Browse the repository at this point in the history
Fix checkpatch warning:

    ERROR: Macros with complex values should be enclosed in parentheses
    torvalds#911: FILE: drivers/tty/serial/sb1250-duart.c:911:
    +#define SERIAL_SB1250_DUART_CONSOLE	&sbd_console

Signed-off-by: Enrico Weigelt <info@metux.net>
  • Loading branch information
metux committed Apr 30, 2019
1 parent 481f809 commit ebe5fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sb1250-duart.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ static int __init sbd_serial_console_init(void)

console_initcall(sbd_serial_console_init);

#define SERIAL_SB1250_DUART_CONSOLE &sbd_console
#define SERIAL_SB1250_DUART_CONSOLE (&sbd_console)
#else
#define SERIAL_SB1250_DUART_CONSOLE NULL
#endif /* CONFIG_SERIAL_SB1250_DUART_CONSOLE */
Expand Down

0 comments on commit ebe5fad

Please sign in to comment.