diff --git a/drivers/usbhost/usbhost_cdcacm.c b/drivers/usbhost/usbhost_cdcacm.c index 4314007583c..fb900fe3d8f 100644 --- a/drivers/usbhost/usbhost_cdcacm.c +++ b/drivers/usbhost/usbhost_cdcacm.c @@ -2141,7 +2141,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);