commit | f32cb53219a956b96a4cd1ee7c6b1b8a48d40e9f | [log] [tgz] |
---|---|---|
author | Namhyung Kim <namhyung@gmail.com> | Mon Jan 17 15:45:59 2011 +0900 |
committer | J. Bruce Fields <bfields@redhat.com> | Mon Mar 07 12:05:09 2011 -0500 |
tree | 902efb83d1ffa7e7e9ebfe49ad1e9adca8ef52e6 | |
parent | dd9c1549edef02290edced639f67b54a25abbe0e [diff] [blame] |
locks: use assign_type() Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
diff --git a/fs/locks.c b/fs/locks.c index 0f39982..2c2d3b8 100644 --- a/fs/locks.c +++ b/fs/locks.c
@@ -415,17 +415,7 @@ 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