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 <zab@versity.com>
This commit is contained in:
Zach Brown
2017-09-27 11:39:21 -07:00
committed by Mark Fasheh
parent c5ddec7058
commit 4bc565be39

View File

@@ -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);