smbd: Avoid an "else"
authorVolker Lendecke <vl@samba.org>
Sun, 13 Mar 2022 14:58:03 +0000 (15:58 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 23 Mar 2022 16:57:28 +0000 (16:57 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index 059de584d17c9ee5641bc1cd725296087fc94877..51ac0bfa75126a431b608d7384788380a3b9f24d 100644 (file)
@@ -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;
        }