summaryrefslogtreecommitdiff
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-03-21 21:12:55 +0300
committerJohan Hovold <johan@kernel.org>2023-04-05 14:23:56 +0300
commitad813605f77553f5e73cd23913fa7591b0d794f6 (patch)
treeb90fae5b345b3a163446ef5d71d675a34d325a85 /drivers/usb/serial
parent197b6b60ae7bc51dd0814953c562833143b292aa (diff)
downloadlinux-ad813605f77553f5e73cd23913fa7591b0d794f6.tar.xz
USB: serial: quatech2: remove unused qt2_setdevice function
clang with W=1 reports drivers/usb/serial/quatech2.c:179:19: error: unused function 'qt2_setdevice' [-Werror,-Wunused-function] static inline int qt2_setdevice(struct usb_device *dev, u8 *data) ^ This function is not used, so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/quatech2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c
index 6fca40ace83a..fee581409bf6 100644
--- a/drivers/usb/serial/quatech2.c
+++ b/drivers/usb/serial/quatech2.c
@@ -176,14 +176,6 @@ static inline int qt2_control_msg(struct usb_device *dev,
NULL, 0, QT2_USB_TIMEOUT);
}
-static inline int qt2_setdevice(struct usb_device *dev, u8 *data)
-{
- u16 x = ((u16) (data[1] << 8) | (u16) (data[0]));
-
- return qt2_control_msg(dev, QT_SET_GET_DEVICE, x, 0);
-}
-
-
static inline int qt2_getregister(struct usb_device *dev,
u8 uart,
u8 reg,