sched/wdog: Remove MAX_WDOGPARMS and related stuff

since the variable arguments are error prone and seldom used.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-08-10 02:29:35 +08:00
committed by patacongo
parent 7252275e15
commit acca9fcc3b
128 changed files with 728 additions and 977 deletions
+3 -3
View File
@@ -151,7 +151,7 @@ static void igmp_timeout_work(FAR void *arg)
*
****************************************************************************/
static void igmp_timeout(int argc, wdparm_t arg, ...)
static void igmp_timeout(wdparm_t arg)
{
FAR struct igmp_group_s *group;
int ret;
@@ -161,7 +161,7 @@ static void igmp_timeout(int argc, wdparm_t arg, ...)
/* Recover the reference to the group */
group = (FAR struct igmp_group_s *)arg;
DEBUGASSERT(argc == 1 && group != NULL);
DEBUGASSERT(group != NULL);
/* Perform the timeout-related operations on (preferably) the low priority
* work queue.
@@ -197,7 +197,7 @@ void igmp_startticks(FAR struct igmp_group_s *group, unsigned int ticks)
gtmrinfo("ticks: %d\n", ticks);
ret = wd_start(&group->wdog, ticks, igmp_timeout, 1, (wdparm_t)group);
ret = wd_start(&group->wdog, ticks, igmp_timeout, (wdparm_t)group);
DEBUGASSERT(ret == OK);
UNUSED(ret);