remove violation MISRA 6.3 on errors