From: Daeseok Youn Date: Wed, 6 Jul 2016 06:12:29 +0000 (+0900) Subject: staging: dgnc: remove redundant local variable for X-Git-Tag: v4.9-rc1~119^2~1197 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ca4b20a765f4429e5c2795fcae1a3ce312f075b;p=karo-tx-linux.git staging: dgnc: remove redundant local variable for The local variable "bd" was not used in dgnc_carrier() function. Signed-off-by: Daeseok Youn Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 17ba96684c6b..13870413c7b6 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;