refactor: initHookRegister wihout the failure check.

This commit is contained in:
Jerzy Jamroz
2025-02-05 10:29:40 +01:00
committed by Andrew Johnson
parent 04c7cdd33a
commit dd09670b35

View File

@@ -90,12 +90,7 @@ static void atInitFunc(const iocshArgBuf* args)
if (first_time) {
first_time = 0;
if (initHookRegister(atInitHook) < 0) {
errno = ENOMEM;
printf(ERL_ERROR " atInit: "
"initHookRegister memory allocation failure %s\n",
strerror(errno));
}
initHookRegister(atInitHook);
}
struct cmditem* item = newItem(cmd);