[PATCH 6.5 312/550] crypto: hisilicon/hpre - Fix a erroneous check after snprintf()