refactor: initHookRegister wihout the failure check.
This commit is contained in:
committed by
Andrew Johnson
parent
04c7cdd33a
commit
dd09670b35
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user