From e2ccd822037ac14cdedd971fde3a315922c0d135 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 5 Dec 2022 11:51:28 +0100 Subject: [PATCH] smbd: Remove a pointless NULL check from readlink_talloc() We should never call this without the place to put the target in. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/files.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 8aa09680d54..87684b1984d 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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 -- 2.11.4.GIT