From 6dfc58624e5b704507d3316be429be4868b202e2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 5 Jun 2022 14:39:48 +0200 Subject: [PATCH] lib: Slightly simplify is_ntfs_stream_smb_fname() YMMV, but for me the direct return is easier to read Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/filename_util.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index ca4d77713ad..1ba8fceb6e0 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -290,11 +290,7 @@ bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname) { assert_valid_stream_smb_fname(smb_fname); - if (smb_fname->stream_name == NULL) { - return false; - } - - return true; + return (smb_fname->stream_name != NULL); } /****************************************************************************