Remove the unnecessary cast for main_t, NULL and argv

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-10-16 01:48:35 +08:00
committed by Alin Jerpelea
parent 7923ea3bef
commit 6b31918b42
113 changed files with 149 additions and 159 deletions
@@ -302,7 +302,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -315,7 +315,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -315,7 +315,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}