summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-12-15 20:54:05 +0800
committersakumisu <[email protected]>2025-12-15 20:54:05 +0800
commit7b9b396ab4b393155c39cbdc343a3c121589a0a1 (patch)
tree58939b03b90f1af0a1ff3559331ede043a5b0ca5
parent3a1f3c3ba426a6afbdab8ded0a41660dbb79089a (diff)
fix(usbh_cp210x): remove ununsed code
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--class/serial/usbh_cp210x.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/class/serial/usbh_cp210x.c b/class/serial/usbh_cp210x.c
index 1aa52ff5..7b240e2c 100644
--- a/class/serial/usbh_cp210x.c
+++ b/class/serial/usbh_cp210x.c
@@ -302,7 +302,6 @@ static int usbh_cp210x_set_data_format(struct usbh_serial *serial, uint8_t datab
static int usbh_cp210x_attach(struct usbh_serial *serial)
{
- struct cp210x_comm_status status = { 0 };
int ret;
struct usbh_cp210x *cp210x_class = usb_osal_malloc(sizeof(struct usbh_cp210x));
@@ -319,8 +318,6 @@ static int usbh_cp210x_attach(struct usbh_serial *serial)
if (ret < 0) {
goto errout;
}
-
- USB_LOG_INFO("ulAmountInInQueue: %u, ulAmountInOutQueue: %u\r\n", (unsigned int)status.ulAmountInInQueue, (unsigned int)status.ulAmountInOutQueue);
return 0;
errout:
serial->priv = NULL;