1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

lib: Slightly simplify is_ntfs_stream_smb_fname()

YMMV, but for me the direct return is easier to read

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-06-05 14:39:48 +02:00 committed by Jeremy Allison
parent b3c2d5d4b6
commit 6dfc58624e

View File

@ -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);
}
/****************************************************************************