src: remove NuttX ifdefs around args

It doesn't look like they are required anymore.
This commit is contained in:
Julian Oes
2020-12-14 09:26:18 +01:00
committed by Beat Küng
parent 5be2066e1a
commit 314b5e721f
3 changed files with 3 additions and 20 deletions
+1 -4
View File
@@ -1137,12 +1137,9 @@ int GPS::task_spawn(int argc, char *argv[], Instance instance)
int GPS::run_trampoline_secondary(int argc, char *argv[])
{
#ifdef __PX4_NUTTX
// on NuttX task_create() adds the task name as first argument
// the task name is the first argument
argc -= 1;
argv += 1;
#endif
GPS *gps = instantiate(argc, argv, Instance::Secondary);
if (gps) {