mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-16 12:16:32 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user