diff --git a/modules/libcom/src/iocsh/atInit.c b/modules/libcom/src/iocsh/atInit.c index 103a254f8..e5d3cd823 100644 --- a/modules/libcom/src/iocsh/atInit.c +++ b/modules/libcom/src/iocsh/atInit.c @@ -9,14 +9,12 @@ #include #include #include -#include #include #include #include #include "atInit.h" -// Version within the message static const char helpMessage[] = "Allows you to define commands to be run after the iocInit\n" "Example commands:\n" @@ -93,12 +91,7 @@ static void atInitFunc(const iocshArgBuf* args) initHookRegister(atInitHook); } - struct cmditem* item = newItem(cmd); - - if (!item) - printf(ERL_ERROR " atInit: " - "failed to add the command '%s' %s\n", - cmd, strerror(errno)); + newItem(cmd); } void atInitRegister(void)