sched/wqueue: Change the return type of work_notifier_teardown to void
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f208c4bbd4
commit
9072eecc30
@ -2435,16 +2435,15 @@ int usbhost_msc_notifier_setup(worker_t worker, uint8_t event, char sdchar,
|
|||||||
* usbhost_msc_notifier_setup().
|
* usbhost_msc_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int usbhost_msc_notifier_teardown(int key)
|
void usbhost_msc_notifier_teardown(int key)
|
||||||
{
|
{
|
||||||
/* This is just a simple wrapper around work_notifier_teardown(). */
|
/* This is just a simple wrapper around work_notifier_teardown(). */
|
||||||
|
|
||||||
return work_notifier_teardown(key);
|
work_notifier_teardown(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -349,13 +349,12 @@ int iob_notifier_setup(int qid, worker_t worker, FAR void *arg);
|
|||||||
* iob_notifier_setup().
|
* iob_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_IOB_NOTIFIER
|
#ifdef CONFIG_IOB_NOTIFIER
|
||||||
int iob_notifier_teardown(int key);
|
void iob_notifier_teardown(int key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -1093,12 +1093,11 @@ int usbhost_msc_notifier_setup(worker_t worker, uint8_t event, char sdchar,
|
|||||||
* usbhost_msc_notifier_setup().
|
* usbhost_msc_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int usbhost_msc_notifier_teardown(int key);
|
void usbhost_msc_notifier_teardown(int key);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: usbhost_msc_notifier_signal
|
* Name: usbhost_msc_notifier_signal
|
||||||
|
@ -500,13 +500,12 @@ int work_notifier_setup(FAR struct work_notifier_s *info);
|
|||||||
* work_notifier_setup().
|
* work_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_WQUEUE_NOTIFIER
|
#ifdef CONFIG_WQUEUE_NOTIFIER
|
||||||
int work_notifier_teardown(int key);
|
void work_notifier_teardown(int key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -92,16 +92,15 @@ int iob_notifier_setup(int qid, worker_t worker, FAR void *arg)
|
|||||||
* iob_notifier_setup().
|
* iob_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int iob_notifier_teardown(int key)
|
void iob_notifier_teardown(int key)
|
||||||
{
|
{
|
||||||
/* This is just a simple wrapper around work_notifier_teardown(). */
|
/* This is just a simple wrapper around work_notifier_teardown(). */
|
||||||
|
|
||||||
return work_notifier_teardown(key);
|
work_notifier_teardown(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -478,13 +478,12 @@ int netdown_notifier_setup(worker_t worker, FAR struct net_driver_s *dev,
|
|||||||
* netdown_notifier_setup().
|
* netdown_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NETDOWN_NOTIFIER
|
#ifdef CONFIG_NETDOWN_NOTIFIER
|
||||||
int netdown_notifier_teardown(int key);
|
void netdown_notifier_teardown(int key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -105,16 +105,15 @@ int netdown_notifier_setup(worker_t worker, FAR struct net_driver_s *dev,
|
|||||||
* netdown_notifier_setup().
|
* netdown_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int netdown_notifier_teardown(int key)
|
void netdown_notifier_teardown(int key)
|
||||||
{
|
{
|
||||||
/* This is just a simple wrapper around work_notifier_teardown(). */
|
/* This is just a simple wrapper around work_notifier_teardown(). */
|
||||||
|
|
||||||
return work_notifier_teardown(key);
|
work_notifier_teardown(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -1830,13 +1830,12 @@ int tcp_disconnect_notifier_setup(worker_t worker,
|
|||||||
* tcp_readahead_notifier_setup().
|
* tcp_readahead_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_TCP_NOTIFIER
|
#ifdef CONFIG_NET_TCP_NOTIFIER
|
||||||
int tcp_notifier_teardown(int key);
|
void tcp_notifier_teardown(int key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -217,16 +217,15 @@ int tcp_disconnect_notifier_setup(worker_t worker,
|
|||||||
* tcp_readahead_notifier_setup().
|
* tcp_readahead_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int tcp_notifier_teardown(int key)
|
void tcp_notifier_teardown(int key)
|
||||||
{
|
{
|
||||||
/* This is just a simple wrapper around work_notifier_teardown(). */
|
/* This is just a simple wrapper around work_notifier_teardown(). */
|
||||||
|
|
||||||
return work_notifier_teardown(key);
|
work_notifier_teardown(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -832,13 +832,12 @@ int udp_writebuffer_notifier_setup(worker_t worker,
|
|||||||
* udp_readahead_notifier_setup().
|
* udp_readahead_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_UDP_NOTIFIER
|
#ifdef CONFIG_NET_UDP_NOTIFIER
|
||||||
int udp_notifier_teardown(int key);
|
void udp_notifier_teardown(int key);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -164,16 +164,15 @@ int udp_writebuffer_notifier_setup(worker_t worker,
|
|||||||
* udp_readahead_notifier_setup().
|
* udp_readahead_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int udp_notifier_teardown(int key)
|
void udp_notifier_teardown(int key)
|
||||||
{
|
{
|
||||||
/* This is just a simple wrapper around work_notifier_teardown(). */
|
/* This is just a simple wrapper around work_notifier_teardown(). */
|
||||||
|
|
||||||
return work_notifier_teardown(key);
|
work_notifier_teardown(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -276,16 +276,14 @@ int work_notifier_setup(FAR struct work_notifier_s *info)
|
|||||||
* work_notifier_setup().
|
* work_notifier_setup().
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
* None.
|
||||||
* any failure.
|
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int work_notifier_teardown(int key)
|
void work_notifier_teardown(int key)
|
||||||
{
|
{
|
||||||
FAR struct work_notifier_entry_s *notifier;
|
FAR struct work_notifier_entry_s *notifier;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
int ret = OK;
|
|
||||||
|
|
||||||
/* Disable interrupts very briefly. */
|
/* Disable interrupts very briefly. */
|
||||||
|
|
||||||
@ -296,13 +294,7 @@ int work_notifier_teardown(int key)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
notifier = work_notifier_find(key);
|
notifier = work_notifier_find(key);
|
||||||
if (notifier == NULL)
|
if (notifier != NULL)
|
||||||
{
|
|
||||||
/* There is no notification with this key in the pending list */
|
|
||||||
|
|
||||||
ret = -ENOENT;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
/* Found it! Remove the notification from the pending list */
|
/* Found it! Remove the notification from the pending list */
|
||||||
|
|
||||||
@ -314,7 +306,6 @@ int work_notifier_teardown(int key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user