]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: dgnc: clean up the dgnc_get_modem_info()
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 4 May 2016 05:13:48 +0000 (14:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2016 12:10:03 +0000 (14:10 +0200)
commita5b90ef7a1fed3fc0f7a4bf0ad0159eaddb2acfb
tree09fc2e8490f46bd597dbe0ed90357ea757b6b8f0
parent1b30ccded52fb2b297128b190b47641457ecc8f5
staging: dgnc: clean up the dgnc_get_modem_info()

the "ch" in dgnc_get_modem_info() was already checked before calling
this function and also if "ch" is not NULL, dgnc_get_mstat() returns
valid value so it doesn't need to check an error.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c