mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
Remove the unneeded worker_t cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
373363d750
commit
32ee2ae407
@@ -895,7 +895,7 @@ static void usbhost_notification_callback(FAR void *arg, ssize_t nbytes)
|
||||
if (work_available(&priv->ntwork))
|
||||
{
|
||||
work_queue(HPWORK, &priv->ntwork,
|
||||
(worker_t)usbhost_notification_work,
|
||||
usbhost_notification_work,
|
||||
priv, delay);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -500,7 +500,7 @@ static ssize_t cdcwdm_read(FAR struct file *filep, FAR char *buffer,
|
||||
if (work_available(&priv->comm_rxwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->comm_rxwork,
|
||||
(worker_t)usbhost_rxdata_work,
|
||||
usbhost_rxdata_work,
|
||||
priv, 0);
|
||||
}
|
||||
}
|
||||
@@ -797,7 +797,7 @@ static void usbhost_bulkin_callback(FAR void *arg, ssize_t nbytes)
|
||||
if (work_available(&priv->bulk_rxwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->bulk_rxwork,
|
||||
(worker_t)usbhost_bulkin_work, priv, delay);
|
||||
usbhost_bulkin_work, priv, delay);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1022,7 +1022,7 @@ static void usbhost_notification_work(FAR void *arg)
|
||||
if (work_available(&priv->comm_rxwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->comm_rxwork,
|
||||
(worker_t)usbhost_rxdata_work,
|
||||
usbhost_rxdata_work,
|
||||
priv, 0);
|
||||
}
|
||||
}
|
||||
@@ -1117,7 +1117,7 @@ static void usbhost_notification_callback(FAR void *arg, ssize_t nbytes)
|
||||
if (work_available(&priv->ntwork))
|
||||
{
|
||||
(void)work_queue(LPWORK, &priv->ntwork,
|
||||
(worker_t)usbhost_notification_work,
|
||||
usbhost_notification_work,
|
||||
priv, delay);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1236,7 +1236,7 @@ static void usbhost_callback(FAR void *arg, ssize_t nbytes)
|
||||
|
||||
if (work_available(&priv->work) && !priv->disconnected)
|
||||
{
|
||||
work_queue(LPWORK, &priv->work, (worker_t)usbhost_hub_event,
|
||||
work_queue(LPWORK, &priv->work, usbhost_hub_event,
|
||||
hubclass, delay);
|
||||
}
|
||||
}
|
||||
@@ -1496,7 +1496,7 @@ static int usbhost_disconnected(struct usbhost_class_s *hubclass)
|
||||
/* Schedule the disconnection work */
|
||||
|
||||
ret = work_queue(LPWORK, &priv->work,
|
||||
(worker_t)usbhost_disconnect_event, hubclass, 0);
|
||||
usbhost_disconnect_event, hubclass, 0);
|
||||
leave_critical_section(flags);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user