From 862fd1d4504191795943113cd9b592a8ed55aa22 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 4 Dec 2020 14:04:58 +1300 Subject: [PATCH] module: remove NuttX only quirk The behaviour on NuttX and Posix should now be the same anyway. --- platforms/common/include/px4_platform_common/module.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platforms/common/include/px4_platform_common/module.h b/platforms/common/include/px4_platform_common/module.h index d9e9061365..1304c9241a 100644 --- a/platforms/common/include/px4_platform_common/module.h +++ b/platforms/common/include/px4_platform_common/module.h @@ -169,11 +169,9 @@ public: { int ret = 0; -#ifdef __PX4_NUTTX - // On NuttX task_create() adds the task name as first argument. + // We don't need the task name at this point. argc -= 1; argv += 1; -#endif T *object = T::instantiate(argc, argv); _object.store(object);