staging: dgnc: remove redundant local variable for
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:12:29 +0000 (15:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:06:09 +0000 (19:06 +0200)
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>
drivers/staging/dgnc/dgnc_tty.c

index 17ba96684c6bad1f3f85641d0facc20a975e0c1e..13870413c7b658a71e012d2970fb78187bb39f8e 100644 (file)
@@ -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;