[PATCH openEuler-5.10 20/64] Revert "ima: fix a potential crash owing to the compiler optimisation"