diff options
author | Haijun Qin <qinhaijun@eswincomputing.com> | 2022-12-06 10:41:37 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-11 19:54:50 +0300 |
commit | dd02c667906d89ff46b79898de12ae8db9aceb6f (patch) | |
tree | d81e421922054e2553075fe3a82bde458cb4238b /lib | |
parent | 46b2e5e92cacd9b912c43f5fa42213946ab46a63 (diff) | |
download | u-boot-dd02c667906d89ff46b79898de12ae8db9aceb6f.tar.xz |
lib: rsa: cosmetic: fix building warning
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rsa/rsa-sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c index b2a21199e4..d20bdb58a5 100644 --- a/lib/rsa/rsa-sign.c +++ b/lib/rsa/rsa-sign.c @@ -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; |