Remove redundant checks for msgsnd(3) and msgrcv(3).

COMPAT_IA32 (implicitly) requires SYSVSEM, SYSVSHM and SYSVMSG in kernel.

Pointed out by:	jhb
This commit is contained in:
Jung-uk Kim 2007-12-04 20:25:41 +00:00
parent 4ce05f7e44
commit 959a913b87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174268

View File

@ -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,