mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
smbd: Simplify logic in remove_stale_share_mode_entries
To me, an early "continue" is easier to follow than a "else". Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6a76a31779
commit
6be25d5683
@ -805,9 +805,9 @@ void remove_stale_share_mode_entries(struct share_mode_data *d)
|
|||||||
struct share_mode_entry *m = d->share_modes;
|
struct share_mode_entry *m = d->share_modes;
|
||||||
m[i] = m[d->num_share_modes-1];
|
m[i] = m[d->num_share_modes-1];
|
||||||
d->num_share_modes -= 1;
|
d->num_share_modes -= 1;
|
||||||
} else {
|
continue;
|
||||||
i += 1;
|
|
||||||
}
|
}
|
||||||
|
i += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user