From: Volker Lendecke Date: Tue, 31 Jan 2012 16:47:07 +0000 (+0100) Subject: s3: Simplify an if-statement X-Git-Tag: tevent-0.9.15~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a93cdacd1679d968862b6c82ea266f986d4c621e;p=thirdparty%2Fsamba.git s3: Simplify an if-statement is_ntfs_default_stream_smb_fname already contains all checks that the variable "stream_name" gives us here. --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 3374fdb2723..a94a02eb463 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. */