From 4bc565be39f1f46b984525261a45377153dbb38c Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 27 Sep 2017 11:39:21 -0700 Subject: [PATCH] scoutfs: silence bulk_alloc gcc warning Some versions of gcc correctly noticed that bulk_alloc() had a case where it wouldn't initialize ret if the first segno was 0. This won't happen because the client response processing returns an error in this case. So this just shuts up the warning. Signed-off-by: Zach Brown --- kmod/src/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/data.c b/kmod/src/data.c index 9b72d18b..68ca9345 100644 --- a/kmod/src/data.c +++ b/kmod/src/data.c @@ -789,7 +789,7 @@ static struct task_cursor *get_cursor(struct data_info *datinf) static int bulk_alloc(struct super_block *sb) { u64 *segnos = NULL; - int ret; + int ret = 0; int i; segnos = scoutfs_client_bulk_alloc(sb);