mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
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:
committed by
Petro Karashchenko
parent
f208c4bbd4
commit
9072eecc30
+2
-3
@@ -1830,13 +1830,12 @@ int tcp_disconnect_notifier_setup(worker_t worker,
|
||||
* tcp_readahead_notifier_setup().
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
||||
* any failure.
|
||||
* None.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_TCP_NOTIFIER
|
||||
int tcp_notifier_teardown(int key);
|
||||
void tcp_notifier_teardown(int key);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -217,16 +217,15 @@ int tcp_disconnect_notifier_setup(worker_t worker,
|
||||
* tcp_readahead_notifier_setup().
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
||||
* any failure.
|
||||
* None.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int tcp_notifier_teardown(int key)
|
||||
void tcp_notifier_teardown(int key)
|
||||
{
|
||||
/* This is just a simple wrapper around work_notifier_teardown(). */
|
||||
|
||||
return work_notifier_teardown(key);
|
||||
work_notifier_teardown(key);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user