OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2/5] ipc: remove redundant MSG_COPY check
[PATCH 2/5] ipc: remove redundant MSG_COPY check [message #48634] Fri, 26 October 2012 11:06
Stanislav Kinsbursky is currently offline  Stanislav Kinsbursky
Messages: 683
Registered: October 2011
Senior Member
Small cleanup patch.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
---
ipc/msg.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ipc/msg.c b/ipc/msg.c
index 28320ab..f9774ff 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.
 
Read Message
Previous Topic: 'nf_conntrack: table full, dropping packet' @ High packet rate openvz kernel despite unlimited connt
Next Topic: [RFC PATCH 0/5] IPC: CRIU enhancements update
Goto Forum:
  


Current Time: Sun Nov 03 19:43:09 GMT 2024

Total time taken to generate the page: 0.03679 seconds