staging: dgap: removes redundant null check and change the paramter for dgap_param()
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 11 Jul 2014 10:22:39 +0000 (19:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 00:35:45 +0000 (17:35 -0700)
commitab6cdcb4261e0d697292a516452904bc6c7e8404
tree1be6334d416e894ff9817cc1589d417e1caef865
parent9d9011bd8697bd636e54ae96f2895f170a8d4279
staging: dgap: removes redundant null check and change the paramter for dgap_param()

The dgap_param() has a paramter which is tty_struct and
use variables in that struct. That variables which are "ch", "bd", "bs"
and "un" do not need to check NULL so these statements are removed.

And also change the parameter of this function because
it is possible to let someone know what paramters
are needed for this function.

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