]> git.baikalelectronics.ru Git - uboot.git/commitdiff
lib: rsa: cosmetic: fix building warning
authorHaijun Qin <qinhaijun@eswincomputing.com>
Tue, 6 Dec 2022 07:41:37 +0000 (15:41 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 11 Jan 2023 16:54:50 +0000 (11:54 -0500)
add initialization of variable 'node',this can aviod the building
warning:

    'node' may be used uninitialized [-Wmaybe-uninitialized]

Signed-off-by: Haijun Qin <qinhaijun@eswincomputing.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-sign.c

index b2a21199e485b2d47b396422c85531f7e00d11c9..d20bdb58a57fb447ff786be4463eb86b0dfa1a38 100644 (file)
@@ -608,7 +608,7 @@ int rsa_add_verify_data(struct image_sign_info *info, void *keydest)
        BIGNUM *modulus, *r_squared;
        uint64_t exponent;
        uint32_t n0_inv;
-       int parent, node;
+       int parent, node = -FDT_ERR_NOTFOUND;
        char name[100];
        int ret;
        int bits;