]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mxser: cleanup mxser_process_txrx_fifo
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:55 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:02 +0000 (13:10 +0200)
commitc3db20c3b71bf14d49e4a6582325e22db4e74a75
treed195d2a85eef68b31e49f58843dbe83903f64ec3
parentc24c31ff4a7d392945293fd61e844921b9f26f33
mxser: cleanup mxser_process_txrx_fifo

Rename process_txrx_fifo to mxser_process_txrx_fifo and:
* remove useless parentheses
* return from the 'if's true branch and process the rest in normal code
  flow (shift the code one level left)

All this to make the code more readable.

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