mxser: make xmit ring buffer variables unsigned
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:25 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:09:59 +0000 (13:09 +0200)
commit02e431444b52728872570a14ade413a2a26be657
tree25e58ae0b8f75ca56622470bb07c694e9361d4f2
parenta93963e41ffeff71a735f4fab95d2cbacd9da7a8
mxser: make xmit ring buffer variables unsigned

Make the xmit ring buffer pointers and counter (xmit_head, xmit_tail,
xmit_cnt) unsigned. Now, the assumptions for the compiler are clear --
they cannot be negative.

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