staging: dgnc: removes redundant null check and change
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:13:55 +0000 (15:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:06:09 +0000 (19:06 +0200)
commitc23b48e0ed4764af410cacc09d49fe300743e55b
treee95cb5350fd1af5b36e8e436767c45b6e0d0f70e
parent18419f77a22ae8d3b9330c83f6d09e0e66d2d755
staging: dgnc: removes redundant null check and change

The dgnc_set_modem_info() used only channel_t variable.
Any other variables were used only for checking NULL.

So fist parameter changed from "tty_struct" to "channel_t" and
useless NULL checks and variables are removed.

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