mxser: simplify mxser_interrupt and drop mxser_board::vector_mask
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:20 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:09:59 +0000 (13:09 +0200)
commit9cb5c9c3226ba78e33169721f31b459e6791d6ab
tree1c1cda8b2045c6a903cad325cfbcb7f019a7d764
parent9e40ea1f785292356cfb39aafff7d346b46d8b4f
mxser: simplify mxser_interrupt and drop mxser_board::vector_mask

mxser_board::vector_mask is just a bitfield with bits set for all
available ports.  We can obtain this value simply by
"BIT(brd->info->nports) - 1" directly in the ISR. So remove vector_mask
and simplify the code a bit.

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