s3: Simplify an if-statement
authorVolker Lendecke <vl@samba.org>
Tue, 31 Jan 2012 16:47:07 +0000 (17:47 +0100)
committerVolker Lendecke <vlendec@samba.org>
Tue, 31 Jan 2012 22:30:09 +0000 (23:30 +0100)
is_ntfs_default_stream_smb_fname already contains all checks that
the variable "stream_name" gives us here.

source3/smbd/open.c

index 3374fdb2723c1fc4c29ca811e3a5c978f41424d0..a94a02eb463da53b3a7e500411a01c7613ecd631 100644 (file)
@@ -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. */