dosetrlimit: remove the checks which are no longer needed since rlim_t
is unsigned again. Hi <christos>!
This commit is contained in:
parent
c795b4c2a9
commit
db4ca04011
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_resource.c,v 1.149 2009/01/29 22:27:23 drochner Exp $ */
|
||||
/* $NetBSD: kern_resource.c,v 1.150 2009/02/09 11:13:20 rmind Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_resource.c,v 1.149 2009/01/29 22:27:23 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_resource.c,v 1.150 2009/02/09 11:13:20 rmind Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -269,9 +269,6 @@ dosetrlimit(struct lwp *l, struct proc *p, int which, struct rlimit *limp)
|
|||
if ((u_int)which >= RLIM_NLIMITS)
|
||||
return (EINVAL);
|
||||
|
||||
if (limp->rlim_cur < 0 || limp->rlim_max < 0)
|
||||
return (EINVAL);
|
||||
|
||||
if (limp->rlim_cur > limp->rlim_max) {
|
||||
/*
|
||||
* This is programming error. According to SUSv2, we should
|
||||
|
|
Loading…
Reference in New Issue