smbd: Remove FAKE_LEVEL_II_OPLOCK
[mat/samba.git] / source3 / smbd / files.c
index d94ee119527b524af2c3bb14180191e2cd746082..c64c84173cfcc10119418f6091801c13d578e980 100644 (file)
@@ -318,8 +318,7 @@ files_struct *file_find_dif(struct smbd_server_connection *sconn,
                        }
                        /* Paranoia check. */
                        if ((fsp->fh->fd == -1) &&
-                           (fsp->oplock_type != NO_OPLOCK) &&
-                           (fsp->oplock_type != FAKE_LEVEL_II_OPLOCK)) {
+                           (fsp->oplock_type != NO_OPLOCK)) {
                                DEBUG(0,("file_find_dif: file %s file_id = "
                                         "%s, gen = %u oplock_type = %u is a "
                                         "stat open with oplock type !\n",