Skip to content

Commit bafe795

Browse files
committed
fix(usbh_cp210x): remove ununsed code
Signed-off-by: sakumisu <1203593632@qq.com>
1 parent 91f2bb3 commit bafe795

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

class/serial/usbh_cp210x.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ static int usbh_cp210x_set_data_format(struct usbh_serial *serial, uint8_t datab
302302

303303
static int usbh_cp210x_attach(struct usbh_serial *serial)
304304
{
305-
struct cp210x_comm_status status = { 0 };
306305
int ret;
307306

308307
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)
319318
if (ret < 0) {
320319
goto errout;
321320
}
322-
323-
USB_LOG_INFO("ulAmountInInQueue: %u, ulAmountInOutQueue: %u\r\n", (unsigned int)status.ulAmountInInQueue, (unsigned int)status.ulAmountInOutQueue);
324321
return 0;
325322
errout:
326323
serial->priv = NULL;

0 commit comments

Comments
 (0)