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

Commit 5d1ca6cf authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman
Browse files

USB: ftdi_sio: remove pointless syslog spew



Remove some pointless messages from the FTDI serial driver;
I found these filling up syslog on one system.  Also remove
a pointless "break" after a "return" in the same area.

Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6f8aa65b
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -2292,11 +2292,8 @@ static int ftdi_tiocmget(struct tty_struct *tty, struct file *file)
			   FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE,
			   0, 0,
			   buf, 1, WDR_TIMEOUT);
		if (ret < 0) {
			dbg("%s Could not get modem status of device - err: %d", __func__,
			    ret);
		if (ret < 0)
			return ret;
		}
		break;
	case FT8U232AM:
	case FT232BM:
@@ -2311,15 +2308,11 @@ static int ftdi_tiocmget(struct tty_struct *tty, struct file *file)
				   FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE,
				   0, priv->interface,
				   buf, 2, WDR_TIMEOUT);
		if (ret < 0) {
			dbg("%s Could not get modem status of device - err: %d", __func__,
			    ret);
		if (ret < 0)
			return ret;
		}
		break;
	default:
		return -EFAULT;
		break;
	}

	return  (buf[0] & FTDI_SIO_DSR_MASK ? TIOCM_DSR : 0) |