[PATCH openEuler-5.10 212/236] octeontx2-af: Fix static code analyzer reported issues