diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c index 53c6017739b7..ae2ebe96bb9f 100644 --- a/sys/kern/kern_lockf.c +++ b/sys/kern/kern_lockf.c @@ -149,8 +149,6 @@ lf_advlock(ap, head, size) if (oadd > OFF_MAX - start) return (EOVERFLOW); end = start + oadd; - if (end < start) - return (EINVAL); } /* * Avoid the common case of unlocking when inode has no locks.