[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240112042639.3948236-1-suhui@nfschina.com>
Date: Fri, 12 Jan 2024 12:26:40 +0800
From: Su Hui <suhui@...china.com>
To: mark@...heh.com,
jlbec@...lplan.org,
joseph.qi@...ux.alibaba.com,
nathan@...nel.org,
ndesaulniers@...gle.com,
morbo@...gle.com,
justinstitt@...gle.com
Cc: Su Hui <suhui@...china.com>,
ocfs2-devel@...ts.linux.dev,
linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev,
kernel-janitors@...r.kernel.org
Subject: [PATCH] ocfs2: remove useless code in ocfs2_try_to_merge_extent
Clang static checker warning: Value stored to 'rec' is never read.
Remove this useless code to silent this warning.
Signed-off-by: Su Hui <suhui@...china.com>
---
fs/ocfs2/alloc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index ea9127ba3208..71729e4326d3 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -3743,8 +3743,6 @@ static int ocfs2_try_to_merge_extent(handle_t *handle,
goto out;
}
- rec = &el->l_recs[split_index];
-
/*
* Note that we don't pass split_rec here on purpose -
* we've merged it into the rec already.
--
2.30.2
Powered by blists - more mailing lists