]> git.sur5r.net Git - u-boot/commitdiff
tools: image: fix message when fail to add verification data for config
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Oct 2017 06:04:21 +0000 (15:04 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 6 Nov 2017 14:59:01 +0000 (09:59 -0500)
This function is called when signing configuration nodes.  Adjust
the error message.

I do not know why we do not need to show the error message in case of
ENOSPC.  Remove the if-conditional that seems unnecessary.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
tools/image-host.c

index d42c1cae4ee9e6751f99989b96e86d8b450d33a8..2c0030b5e23ef076c9fb48ce821982708486c873 100644 (file)
@@ -626,10 +626,8 @@ static int fit_config_process_sig(const char *keydir, void *keydest,
        /* Write the public key into the supplied FDT file */
        if (keydest) {
                ret = info.crypto->add_verify_data(&info, keydest);
-               if (ret == -ENOSPC)
-                       return -ENOSPC;
                if (ret) {
-                       printf("Failed to add verification data for '%s' signature node in '%s' image node\n",
+                       printf("Failed to add verification data for '%s' signature node in '%s' configuration node\n",
                               node_name, conf_name);
                }
                return ret;