mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
7923ea3bef
commit
6b31918b42
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user