mxser: use msleep_interruptible() in mxser_wait_until_sent()
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:18 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:22 +0000 (18:33 +0100)
commitfe74bc619b0db23c4b513141acd3e3e45694bb08
tree6e390f6bfab97c02758f1708236b23c5278b9a33
parent239ef19ef040698ccbabf25582b40c43554542fd
mxser: use msleep_interruptible() in mxser_wait_until_sent()

Instead of schedule_timeout_interruptible(), because:
1) we don't have to bother with the task state, and
2) msleep* guarantees to sleep that time (if not interrupted).

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