flock: LEVEL_0 update
authorAlan Cox <alan@linux.intel.com>
Wed, 21 Feb 2018 20:31:36 +0000 (20:31 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 21 Feb 2018 20:31:36 +0000 (20:31 +0000)
Kernel/syscall_fs3.c

index f85334d..4f0f75a 100644 (file)
@@ -324,7 +324,6 @@ Perform locking upon a file.
 
 arg_t _flock(void)
 {
-#ifndef CONFIG_LEVEL_0
        inoptr ino;
        regptr struct oft *o;
        staticfast uint8_t c;
@@ -397,10 +396,6 @@ done:
        o->o_access |= O_FLOCK;
        wakeup(&ino->c_flags);
        return 0;
-#else
-       udata.u_error = ENOSYS;
-       return -1;
-#endif
 }