[PATCH 2/2] Remove confusing NULL from error message
Ludwig Nussel
ludwig.nussel at siemens.com
Tue Mar 10 16:58:27 CET 2026
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 at siemens.com>
---
boot/image-fit-sig.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/boot/image-fit-sig.c b/boot/image-fit-sig.c
index e7a768b9add..433df20281f 100644
--- a/boot/image-fit-sig.c
+++ b/boot/image-fit-sig.c
@@ -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;
}
--
2.43.0
base-commit: ba7bf918dafcd093ad733b07ba490baeb20cf5da
branch: patch-signatures
More information about the U-Boot
mailing list