staging: dgnc: check the type of print before calling
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 22 Aug 2016 01:43:59 +0000 (10:43 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 15:21:14 +0000 (17:21 +0200)
commit107b40ad04a902f3a70957134979bfb51118d440
treee447c888483ae20137bb7191576ffcc72c7b6887
parent5d2b7c4a9dd649316e00bd320a05341d4b00ee33
staging: dgnc: check the type of print before calling

The dgnc_maxcps_room() function must be called only for print device.
The if-statement for checking print device checks before calling
dgnc_maxcps_room() and also this function doesn't need to have any
data except channel_t.

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