Module: xenomai-3
Branch: master
Commit: 4d3d4b7f8246d6c1074956e9c37b51aebb0bdebc
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4d3d4b7f8246d6c1074956e9c37b51aebb0bdebc

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Oct 30 10:02:17 2014 +0100

cobalt/posix/io: drop superfluous check

---

 kernel/cobalt/posix/io.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/kernel/cobalt/posix/io.c b/kernel/cobalt/posix/io.c
index 3a5e856..75c71fb 100644
--- a/kernel/cobalt/posix/io.c
+++ b/kernel/cobalt/posix/io.c
@@ -84,9 +84,6 @@ COBALT_SYSCALL(recvmsg, probing,
        struct msghdr m;
        ssize_t ret;
 
-       if (flags & MSG_CMSG_COMPAT)
-               return -EINVAL;
-
        ret = __xn_safe_copy_from_user(&m, umsg, sizeof(m));
        if (ret)
                return ret;
@@ -104,9 +101,6 @@ COBALT_SYSCALL(sendmsg, probing,
        struct msghdr m;
        int ret;
 
-       if (flags & MSG_CMSG_COMPAT)
-               return -EINVAL;
-
        ret = __xn_safe_copy_from_user(&m, umsg, sizeof(m));
 
        return ret ?: rtdm_fd_sendmsg(fd, &m, flags);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to