staging: dgnc: remove redundant NULL checks in
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:11:13 +0000 (15:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:06:09 +0000 (19:06 +0200)
commit10334418d62d968e2901eb116ea449828b782c96
tree3386bfb2ed85ebdaf40e8dcbddaf3dc0a8f0563c
parent598b1529d6ceddeadd528187996f08cc3c39cc55
staging: dgnc: remove redundant NULL checks in

The dgnc_block_til_ready() is only used in dgnc_tty_open().
The unit data(struct un_t) was stored into tty->driver_data in dgnc_tty_open().
And also tty and un were tested about NULL so these variables doesn't
need to check for NULL in dgnc_block_til_ready().

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