diff --git a/drivers/usbhost/usbhost_cdcacm.c b/drivers/usbhost/usbhost_cdcacm.c index fc45e346b20..42e7ddf0664 100644 --- a/drivers/usbhost/usbhost_cdcacm.c +++ b/drivers/usbhost/usbhost_cdcacm.c @@ -2208,7 +2208,7 @@ static int usbhost_disconnected(FAR struct usbhost_class_s *usbclass) if (priv->intin) { - int ret = DRVR_CANCEL(hport->drvr, priv->intin); + ret = DRVR_CANCEL(hport->drvr, priv->intin); if (ret < 0) { uerr("ERROR: Interrupt IN DRVR_CANCEL failed: %d\n", ret);