diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/locks.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/locks.c b/fs/locks.c index 0f3998291f78..2c2d3b804d62 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -415,17 +415,7 @@ static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl, | |||
415 | fl->fl_ops = NULL; | 415 | fl->fl_ops = NULL; |
416 | fl->fl_lmops = NULL; | 416 | fl->fl_lmops = NULL; |
417 | 417 | ||
418 | switch (l->l_type) { | 418 | return assign_type(fl, l->l_type); |
419 | case F_RDLCK: | ||
420 | case F_WRLCK: | ||
421 | case F_UNLCK: | ||
422 | fl->fl_type = l->l_type; | ||
423 | break; | ||
424 | default: | ||
425 | return -EINVAL; | ||
426 | } | ||
427 | |||
428 | return (0); | ||
429 | } | 419 | } |
430 | #endif | 420 | #endif |
431 | 421 | ||