[PATCH 6.1 191/379] crypto: hisilicon/hpre - Fix a erroneous check after snprintf()