diff options
author | Jiri Slaby <jslaby@suse.cz> | 2016-01-12 04:49:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 01:16:21 -0500 |
commit | 6f3689fb5940d0679bcc50bcb47dbb0deae9d5e7 (patch) | |
tree | 6e12d03626bb27017dae540750ba086a56120961 | |
parent | bca1481ec4a0014271b7c220f41d7a790654dfbb (diff) |
TTY: serial/mpsc, remove unused fields
c_iflag and c_cflag are set, but unused. Remove.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/mpsc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/tty/serial/mpsc.c b/drivers/tty/serial/mpsc.c index 44a23113f469..4a3021bcc859 100644 --- a/drivers/tty/serial/mpsc.c +++ b/drivers/tty/serial/mpsc.c | |||
@@ -137,8 +137,6 @@ struct mpsc_port_info { | |||
137 | /* Internal driver state for this ctlr */ | 137 | /* Internal driver state for this ctlr */ |
138 | u8 ready; | 138 | u8 ready; |
139 | u8 rcv_data; | 139 | u8 rcv_data; |
140 | tcflag_t c_iflag; /* save termios->c_iflag */ | ||
141 | tcflag_t c_cflag; /* save termios->c_cflag */ | ||
142 | 140 | ||
143 | /* Info passed in from platform */ | 141 | /* Info passed in from platform */ |
144 | u8 mirror_regs; /* Need to mirror regs? */ | 142 | u8 mirror_regs; /* Need to mirror regs? */ |
@@ -1407,9 +1405,6 @@ static void mpsc_set_termios(struct uart_port *port, struct ktermios *termios, | |||
1407 | ulong flags; | 1405 | ulong flags; |
1408 | u32 chr_bits, stop_bits, par; | 1406 | u32 chr_bits, stop_bits, par; |
1409 | 1407 | ||
1410 | pi->c_iflag = termios->c_iflag; | ||
1411 | pi->c_cflag = termios->c_cflag; | ||
1412 | |||
1413 | switch (termios->c_cflag & CSIZE) { | 1408 | switch (termios->c_cflag & CSIZE) { |
1414 | case CS5: | 1409 | case CS5: |
1415 | chr_bits = MPSC_MPCR_CL_5; | 1410 | chr_bits = MPSC_MPCR_CL_5; |