]> Pileus Git - ~andy/linux/blobdiff - drivers/tty/serial/dz.c
Merge tag 'for-linus-20140225' of git://git.infradead.org/linux-mtd
[~andy/linux] / drivers / tty / serial / dz.c
index 6491b8644a7f2e84730082f37041207989764b71..2f2b2e538a542adcd111b8cf66573815f9d3b845 100644 (file)
@@ -187,7 +187,6 @@ static inline void dz_receive_chars(struct dz_mux *mux)
 {
        struct uart_port *uport;
        struct dz_port *dport = &mux->dport[0];
-       struct tty_struct *tty = NULL;
        struct uart_icount *icount;
        int lines_rx[DZ_NB_PORT] = { [0 ... DZ_NB_PORT - 1] = 0 };
        unsigned char ch, flag;
@@ -197,7 +196,6 @@ static inline void dz_receive_chars(struct dz_mux *mux)
        while ((status = dz_in(dport, DZ_RBUF)) & DZ_DVAL) {
                dport = &mux->dport[LINE(status)];
                uport = &dport->port;
-               tty = uport->state->port.tty;   /* point to the proper dev */
 
                ch = UCHAR(status);             /* grab the char */
                flag = TTY_NORMAL;
@@ -249,7 +247,7 @@ static inline void dz_receive_chars(struct dz_mux *mux)
        }
        for (i = 0; i < DZ_NB_PORT; i++)
                if (lines_rx[i])
-                       tty_flip_buffer_push(mux->dport[i].port.state->port.tty);
+                       tty_flip_buffer_push(&mux->dport[i].port.state->port);
 }
 
 /*