OSDN Git Service

staging: dgnc: remove useless error value assignment
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:11:52 +0000 (15:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:06:09 +0000 (19:06 +0200)
commit290e3abaccbac6afeb3376b13627b3fc6974554b
treea65a243968cc95a6906348ca4c82984e1bfd697c
parent10334418d62d968e2901eb116ea449828b782c96
staging: dgnc: remove useless error value assignment

The "result" variable in dgnc_get_mstat() was initialized with
"-EIO". But if the "ch" is not null, "result" will be set to zero
and if the "ch" is null, dgnc_get_mstat() will return "-ENXIO" as
an error. So "-EIO" error value was useless in dgnc_get_mstat().

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