]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ipc: remove redundant MSG_COPY check
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Sat, 3 Nov 2012 00:43:06 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 8 Nov 2012 04:08:59 +0000 (15:08 +1100)
Small cleanup patch.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/msg.c

index 889cc8db39576b97726bbba4dd4494de15800c33..91873dfb2e5f9b33820a79893df40b000e21f97c 100644 (file)
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -786,11 +786,8 @@ long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp,
                return -EINVAL;
        if (msgflg & MSG_COPY) {
 #ifdef CONFIG_CHECKPOINT_RESTORE
-
-               if (msgflg & MSG_COPY) {
-                       copy_number = msgtyp;
-                       msgtyp = 0;
-               }
+               copy_number = msgtyp;
+               msgtyp = 0;
 
                /*
                 * Create dummy message to copy real message to.