From: Stanislav Kinsbursky Date: Fri, 9 Nov 2012 03:05:07 +0000 (+1100) Subject: ipc: remove redundant MSG_COPY check X-Git-Tag: next-20121112~5^2~39 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c038e5914cf7c8bbe6410b9132d7d3fd04145895;p=karo-tx-linux.git ipc: remove redundant MSG_COPY check Small cleanup patch. Signed-off-by: Stanislav Kinsbursky Cc: Serge Hallyn Cc: "Eric W. Biederman" Cc: Pavel Emelyanov Cc: Al Viro Cc: KOSAKI Motohiro Cc: Michael Kerrisk Signed-off-by: Andrew Morton --- diff --git a/ipc/msg.c b/ipc/msg.c index 889cc8db3957..91873dfb2e5f 100644 --- 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.