diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-04 18:19:09 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-04 18:19:09 +0000 |
commit | 76535adbaa2b3fcc8d8f32ec8bc9b7ffae5b6ae4 (patch) | |
tree | ad4c45fa2f25d0f4453cf5d14e336dbfac5a48e0 /sys/kern/kern_resource.c | |
parent | 0bd932a38d92baf8b3366b1c86413e178f43d921 (diff) | |
download | FreeBSD-src-76535adbaa2b3fcc8d8f32ec8bc9b7ffae5b6ae4.zip FreeBSD-src-76535adbaa2b3fcc8d8f32ec8bc9b7ffae5b6ae4.tar.gz |
Remove spl's from kern_resource.c.
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r-- | sys/kern/kern_resource.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 0398b75..264de1d 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1133,14 +1133,11 @@ chgsbsize(uip, hiwat, to, max) rlim_t max; { rlim_t new; - int s; - s = splnet(); UIDINFO_LOCK(uip); new = uip->ui_sbsize + to - *hiwat; /* Don't allow them to exceed max, but allow subtraction */ if (to > *hiwat && new > max) { - splx(s); UIDINFO_UNLOCK(uip); return (0); } @@ -1148,7 +1145,6 @@ chgsbsize(uip, hiwat, to, max) *hiwat = to; if (uip->ui_sbsize < 0) printf("negative sbsize for uid = %d\n", uip->ui_uid); - splx(s); UIDINFO_UNLOCK(uip); return (1); } |