[PATCH 6.5 151/550] regmap: debugfs: Fix a erroneous check after snprintf()