]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mxser: remove xmit_cnt < 0 tests
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:15:06 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:02 +0000 (13:10 +0200)
commit265ceff7aeaa1001b4bea810e1b832d138352b3f
tree054adbe337f7e0fc172d7bcf71faf2d2f422e898
parent740165f7acbf1e73e6a7bfa2e8642b2e86cdee94
mxser: remove xmit_cnt < 0 tests

mxser_port::xmit_cnt is unsigned, it cannot be negative. Therefore
remove all the xmit_cnt < 0 tests.

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