Squelch gcc uninitialized warning on el7

The gcc version in el7 can't determine that scoutfs_block_check_stale
won't return ret = 0 when the input ret value is < 0, and
errors because we might call alloc_wpage with an uninitialized
read_seq. Initialize it to 0 to avoid it.

Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
Auke Kok
2026-04-14 15:09:20 -04:00
parent fc0fc1427f
commit 7a9f9ec698
+1 -1
View File
@@ -922,7 +922,7 @@ static int insert_read_pages(struct super_block *sb, struct wkic_info *winf,
struct wkic_page *wpage;
LIST_HEAD(pages);
u64 merge_input_seq;
u64 read_seq;
u64 read_seq = 0;
int ret;
ret = 0;