[PATCH 6.6 343/603] crypto: hisilicon/hpre - Fix a erroneous check after snprintf()