1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +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:
Volker Lendecke 2018-07-30 13:21:26 +02:00 committed by Andreas Schneider
parent 6a76a31779
commit 6be25d5683

View File

@ -805,9 +805,9 @@ void remove_stale_share_mode_entries(struct share_mode_data *d)
struct share_mode_entry *m = d->share_modes;
m[i] = m[d->num_share_modes-1];
d->num_share_modes -= 1;
} else {
i += 1;
continue;
}
i += 1;
}
}