serial: pic32: simplify pic32_sport::enable_tx_irq handling
authorJiri Slaby <jslaby@suse.cz>
Tue, 3 May 2022 06:31:16 +0000 (08:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:39:17 +0000 (22:39 +0200)
commite8616bd0e9f24a9265fe5db1e7963185514b445a
treeaa381004d7be9623b2e712ca80280b54b05a758a
parentbb2cff419d3253aac12e7513be2b0fd7ee11ad78
serial: pic32: simplify pic32_sport::enable_tx_irq handling

Make it a bool, so use true+false. And remove the wrap-around macro --
i.e. access the member directly.

It makes the code more obvious.

BTW the macro did not have 'sport' in parentheses, so it was potentially
problematic wrt expansion.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220503063122.20957-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.c