From 4c91f8ac2a9943f4b58090faf8cb3dcdb2a19e5a Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 31 Oct 2023 06:05:25 +0100 Subject: [PATCH] smbtorture3: reduce indentation in posix_ls_fn() Prepares for adding more logic in a later commit. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/torture/test_posix.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source3/torture/test_posix.c b/source3/torture/test_posix.c index dbf72db7b03..847f2046117 100644 --- a/source3/torture/test_posix.c +++ b/source3/torture/test_posix.c @@ -46,14 +46,15 @@ static NTSTATUS posix_ls_fn(struct file_info *finfo, (struct posix_test_entry *)_state; for (; state->name != NULL; state++) { - if (strequal(finfo->name, state->expected)) { - if (state->attr != finfo->attr) { - break; - } - state->ok = true; - state->returned_size = finfo->size; + if (!strequal(finfo->name, state->expected)) { + continue; + } + if (state->attr != finfo->attr) { break; } + state->ok = true; + state->returned_size = finfo->size; + break; } return NT_STATUS_OK; -- 2.11.4.GIT