Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f3689fb authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

TTY: serial/mpsc, remove unused fields



c_iflag and c_cflag are set, but unused. Remove.

Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bca1481e
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -137,8 +137,6 @@ struct mpsc_port_info {
	/* Internal driver state for this ctlr */
	/* Internal driver state for this ctlr */
	u8 ready;
	u8 ready;
	u8 rcv_data;
	u8 rcv_data;
	tcflag_t c_iflag;	/* save termios->c_iflag */
	tcflag_t c_cflag;	/* save termios->c_cflag */


	/* Info passed in from platform */
	/* Info passed in from platform */
	u8 mirror_regs;		/* Need to mirror regs? */
	u8 mirror_regs;		/* Need to mirror regs? */
@@ -1407,9 +1405,6 @@ static void mpsc_set_termios(struct uart_port *port, struct ktermios *termios,
	ulong flags;
	ulong flags;
	u32 chr_bits, stop_bits, par;
	u32 chr_bits, stop_bits, par;


	pi->c_iflag = termios->c_iflag;
	pi->c_cflag = termios->c_cflag;

	switch (termios->c_cflag & CSIZE) {
	switch (termios->c_cflag & CSIZE) {
	case CS5:
	case CS5:
		chr_bits = MPSC_MPCR_CL_5;
		chr_bits = MPSC_MPCR_CL_5;