[PATCH openEuler-21.09 13/33] drivers/perf: hisi: Remove unnecessary check of counter index