[PATCH 3/6 resend] ark3116: Remove redundant function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ARK3116_RCV_QUIET is now the same as ARK3116_RCV, so remove it.

Signed-off-by: Mike McCormack <mikem@xxxxxxxxxx>
---
 drivers/usb/serial/ark3116.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c
index 02bc72a..b859455 100644
--- a/drivers/usb/serial/ark3116.c
+++ b/drivers/usb/serial/ark3116.c
@@ -63,15 +63,6 @@ static inline int ARK3116_RCV(struct usb_serial *serial,
 				 buf, 0x0000001, 1000);
 }
 
-static inline int ARK3116_RCV_QUIET(struct usb_serial *serial,
-				     __u16 value, __u16 index, char *buf)
-{
-	return usb_control_msg(serial->dev,
-			usb_rcvctrlpipe(serial->dev, 0),
-			0xfe, 0xc0, value, index,
-			buf, 0x0000001, 1000);
-}
-
 static int ark3116_attach(struct usb_serial *serial)
 {
 	char *buf;
@@ -410,7 +401,7 @@ static int ark3116_tiocmget(struct tty_struct *tty, struct file *file)
 	}
 
 	/* read register */
-	ARK3116_RCV_QUIET(serial, 0x0000, 0x0006, buf);
+	ARK3116_RCV(serial, 0x0006, buf);
 	temp = buf[0];
 	kfree(buf);
 
-- 
1.5.6.5


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux