From 7c00aa0ce765950c2336834220fd76336dc00597 Mon Sep 17 00:00:00 2001 From: jkim Date: Tue, 4 Dec 2007 20:25:41 +0000 Subject: Remove redundant checks for msgsnd(3) and msgrcv(3). COMPAT_IA32 (implicitly) requires SYSVSEM, SYSVSHM and SYSVMSG in kernel. Pointed out by: jhb --- sys/compat/freebsd32/freebsd32_misc.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys') diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 9739788..32b2564 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -1371,9 +1371,6 @@ freebsd32_msgsnd(struct thread *td, struct freebsd32_msgsnd_args *uap) int32_t mtype32; int error; - if (!SYSCALL_MODULE_PRESENT(msgsnd)) - return (nosys(td, (struct nosys_args *)uap)); - msgp = PTRIN(uap->msgp); if ((error = copyin(msgp, &mtype32, sizeof(mtype32))) != 0) return (error); @@ -1391,9 +1388,6 @@ freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap) int32_t mtype32; int error; - if (!SYSCALL_MODULE_PRESENT(msgrcv)) - return (nosys(td, (struct nosys_args *)uap)); - msgp = PTRIN(uap->msgp); if ((error = kern_msgrcv(td, uap->msqid, (char *)msgp + sizeof(mtype32), uap->msgsz, -- cgit v1.1