]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a20a53bcea8b961916992fcf63ce3820c0586e2
treee95cb5350fd1af5b36e8e436767c45b6e0d0f70e
parent2175812bae93d136a1859cc1ed932c859f9a29b0
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