summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2016-07-06 06:12:29 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 17:06:09 (GMT)
commit3ca4b20a765f4429e5c2795fcae1a3ce312f075b (patch)
tree983f39c7a355bf03db6159d47c902a52b953fe9d
parent290e3abaccbac6afeb3376b13627b3fc6974554b (diff)
downloadlinux-3ca4b20a765f4429e5c2795fcae1a3ce312f075b.tar.xz
staging: dgnc: remove redundant local variable for
The local variable "bd" was not used in dgnc_carrier() function. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 17ba966..1387041 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -640,19 +640,12 @@ exit_unlock:
************************************************************************/
void dgnc_carrier(struct channel_t *ch)
{
- struct dgnc_board *bd;
-
int virt_carrier = 0;
int phys_carrier = 0;
if (!ch || ch->magic != DGNC_CHANNEL_MAGIC)
return;
- bd = ch->ch_bd;
-
- if (!bd || bd->magic != DGNC_BOARD_MAGIC)
- return;
-
if (ch->ch_mistat & UART_MSR_DCD)
phys_carrier = 1;