[PATCH openEuler-5.10 12/46] crypto: hisilicon/hpre - use swap() to make code cleaner