These variables were assigned some values but they were never used.
Removed them but kept one call to ioread8() as it might affect the
hardware.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        int port;
        int reason;
        int modem;
-       int b1;
 
        if (!bd || bd->magic != DGAP_BOARD_MAGIC)
                return -EIO;
                port   = ioread8(event);
                reason = ioread8(event + 1);
                modem  = ioread8(event + 2);
-               b1     = ioread8(event + 3);
+               ioread8(event + 3);
 
                /*
                 * Make sure the interrupt is valid.
  */
 static void dgap_tty_close(struct tty_struct *tty, struct file *file)
 {
-       struct ktermios *ts;
        struct board_t *bd;
        struct channel_t *ch;
        struct un_t *un;
        if (!bd || bd->magic != DGAP_BOARD_MAGIC)
                return;
 
-       ts = &tty->termios;
-
        spin_lock_irqsave(&ch->ch_lock, lock_flags);
 
        /*