module: remove NuttX only quirk

The behaviour on NuttX and Posix should now be the same anyway.
This commit is contained in:
Julian Oes 2020-12-04 14:04:58 +13:00 committed by Beat Küng
parent 314b5e721f
commit 862fd1d450
1 changed files with 1 additions and 3 deletions

View File

@ -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);