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

Commit 8a7f7c93 authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds
Browse files

[PATCH] moxa: remove pointless check of 'tty' argument vs NULL



Remove pointless check of 'tty' argument vs NULL from moxa driver.

Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 56e139f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1081,7 +1081,7 @@ static int mxser_write(struct tty_struct *tty, const unsigned char *buf, int cou
	struct mxser_struct *info = tty->driver_data;
	unsigned long flags;

	if (!tty || !info->xmit_buf)
	if (!info->xmit_buf)
		return (0);

	while (1) {
@@ -1117,7 +1117,7 @@ static void mxser_put_char(struct tty_struct *tty, unsigned char ch)
	struct mxser_struct *info = tty->driver_data;
	unsigned long flags;

	if (!tty || !info->xmit_buf)
	if (!info->xmit_buf)
		return;

	if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1)