Remove confusing NULL from error message

If no signature could be verified and the loop terminates, the iterator
'noffset' has no meaningful value so name yields NULL.

Signed-off-by: Ludwig Nussel <ludwig.nussel@siemens.com>
This commit is contained in:
Ludwig Nussel
2026-03-10 16:58:27 +01:00
committed by Tom Rini
parent 40269a6e01
commit ce98d46395

View File

@@ -593,9 +593,8 @@ static int fit_config_verify_key(const void *fit, int conf_noffset,
return 0;
error:
printf(" error!\n%s for '%s' hash node in '%s' config node\n",
err_msg, fit_get_name(fit, noffset, NULL),
fit_get_name(fit, conf_noffset, NULL));
printf(" error!\n%s for '%s' config node\n",
err_msg, fit_get_name(fit, conf_noffset, NULL));
return -EPERM;
}