Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f32cb532 authored by Namhyung Kim's avatar Namhyung Kim Committed by J. Bruce Fields
Browse files

locks: use assign_type()

parent dd9c1549
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -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