diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2021-11-18 08:31:19 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-25 18:33:22 +0100 |
| commit | 49b798a69e2b1b8c9de6df66a5b8ccf090583551 (patch) | |
| tree | 95ba6e1e12ce8f7da6f7998db3d60a775cad5658 /tools/perf/scripts/python/bin | |
| parent | mxser: use msleep_interruptible() in mxser_wait_until_sent() (diff) | |
| download | linux-49b798a69e2b1b8c9de6df66a5b8ccf090583551.tar.gz linux-49b798a69e2b1b8c9de6df66a5b8ccf090583551.zip | |
mxser: clean up timeout handling in mxser_wait_until_sent()
timeout cannot be zero at the point of use. So no need to check for
zero. Also precompute the expiration time (into expire) and use it. This
makes the code more clear.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118073125.12283-14-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
