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 Feb 7, 2021
1 parent 49b1946 commit 5d13a09
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 @@ -904,7 +904,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 5d13a09

Please sign in to comment.