提交 f32cb532 编写于 作者: N Namhyung Kim 提交者: J. Bruce Fields

locks: use assign_type()

Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 dd9c1549
......@@ -415,17 +415,7 @@ static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl,
fl->fl_ops = NULL;
fl->fl_lmops = NULL;
switch (l->l_type) {
case F_RDLCK:
case F_WRLCK:
case F_UNLCK:
fl->fl_type = l->l_type;
break;
default:
return -EINVAL;
}
return (0);
return assign_type(fl, l->l_type);
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册