NXP-13032: remove useless code in toggleError function