mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 19:20:44 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user