From: Volker Lendecke Date: Sun, 13 Mar 2022 14:58:03 +0000 (+0100) Subject: smbd: Avoid an "else" X-Git-Tag: tevent-0.12.0~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd692c1f9045880b19fbc6de9ed024d06c1c8113;p=thirdparty%2Fsamba.git smbd: Avoid an "else" Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 059de584d17..51ac0bfa751 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -507,7 +507,8 @@ static char *dptr_ReadDirName(TALLOC_CTX *ctx, if (NT_STATUS_IS_OK(status)) { name = found_name; goto clean; - } else if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) { + } + if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) { /* The case-insensitive lookup was authoritative. */ goto clean; }