]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove a pointless NULL check from readlink_talloc()
authorVolker Lendecke <vl@samba.org>
Mon, 5 Dec 2022 10:51:28 +0000 (11:51 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 15 Dec 2022 21:52:34 +0000 (21:52 +0000)
We should never call this without the place to put the target in.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/files.c

index 8aa09680d541c143f7dfeda669a2e1feec597804..87684b1984d57c07aa1c16e5f8905adcaec9186f 100644 (file)
@@ -693,10 +693,6 @@ NTSTATUS readlink_talloc(
        char *substitute;
        NTSTATUS status;
 
-       if (_substitute == NULL) {
-               return NT_STATUS_OK;
-       }
-
        if (smb_relname == NULL) {
                /*
                 * We have a Linux O_PATH handle in dirfsp and want to