From b53aa99294fea1505375b05d550c492dd06c279e Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Thu, 28 Mar 2024 20:32:46 +0300 Subject: [PATCH] LU-17690 quota: uninitialized var in qmt_lgd_extend_cb() fix false warning Test-Parameters: trivial Signed-off-by: Alex Zhuravlev Change-Id: I30e530119edd34c2a73487af4cbcc7ee9da46725 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54610 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/quota/qmt_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/quota/qmt_pool.c b/lustre/quota/qmt_pool.c index 66c4aa4..6d08e9e 100644 --- a/lustre/quota/qmt_pool.c +++ b/lustre/quota/qmt_pool.c @@ -705,7 +705,7 @@ static int qmt_lgd_extend_cb(struct cfs_hash *hs, struct cfs_hash_bd *bd, { struct lqe_glbl_entry *lqeg_arr, *old_lqeg_arr; struct lquota_entry *lqe; - int old_num, rc; + int old_num = 0, rc; lqe = hlist_entry(hnode, struct lquota_entry, lqe_hash); LASSERT(atomic_read(&lqe->lqe_ref) > 0); -- 1.8.3.1