From a93cdacd1679d968862b6c82ea266f986d4c621e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 31 Jan 2012 17:47:07 +0100 Subject: s3: Simplify an if-statement is_ntfs_default_stream_smb_fname already contains all checks that the variable "stream_name" gives us here. --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 3374fdb272..a94a02eb46 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3832,7 +3832,7 @@ NTSTATUS create_file_default(connection_struct *conn, } } - if (stream_name && is_ntfs_default_stream_smb_fname(smb_fname)) { + if (is_ntfs_default_stream_smb_fname(smb_fname)) { int ret; smb_fname->stream_name = NULL; /* We have to handle this error here. */ -- cgit