From: Volker Lendecke Date: Tue, 20 Dec 2022 13:14:45 +0000 (+0100) Subject: smbd: Reduce indentation in ucf_flags_from_smb_request() X-Git-Tag: talloc-2.4.0~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e89a16df45f208d9e72c1080d7dff176dd1abf3;p=thirdparty%2Fsamba.git smbd: Reduce indentation in ucf_flags_from_smb_request() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 0859e6fd5c3..406618c0af7 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -35,16 +35,18 @@ uint32_t ucf_flags_from_smb_request(struct smb_request *req) { uint32_t ucf_flags = 0; - if (req != NULL) { - if (req->posix_pathnames) { - ucf_flags |= UCF_POSIX_PATHNAMES; - } - if (req->flags2 & FLAGS2_DFS_PATHNAMES) { - ucf_flags |= UCF_DFS_PATHNAME; - } - if (req->flags2 & FLAGS2_REPARSE_PATH) { - ucf_flags |= UCF_GMT_PATHNAME; - } + if (req == NULL) { + return 0; + } + + if (req->posix_pathnames) { + ucf_flags |= UCF_POSIX_PATHNAMES; + } + if (req->flags2 & FLAGS2_DFS_PATHNAMES) { + ucf_flags |= UCF_DFS_PATHNAME; + } + if (req->flags2 & FLAGS2_REPARSE_PATH) { + ucf_flags |= UCF_GMT_PATHNAME; } return ucf_flags;