mxser: move MSR read to mxser_check_modem_status()
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:10 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:21 +0000 (18:33 +0100)
commit30f6027fe4643be955e4e9849f242e55ba993185
treefa9f10f3d5f1938b7c40ea94772c14cf4d36d3ee
parent274ab58dc2b460cc474ffc7ccfcede4b2be1a3f5
mxser: move MSR read to mxser_check_modem_status()

The MSR read is currently performed on both places where
mxser_check_modem_status() is called. So move it there to avoid code
duplication.

Rename the variable to msr while we move it, to actually see what
"status" we are testing.

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