OpenVZ Forum


Home » Mailing lists » Devel » [PATCH v7 01/10] ipc: remove forced assignment of selected message
[PATCH v7 01/10] ipc: remove forced assignment of selected message [message #48468] Thu, 18 October 2012 10:22
Stanislav Kinsbursky is currently offline  Stanislav Kinsbursky
Messages: 683
Registered: October 2011
Senior Member
This is a cleanup patch. The assignment is redundant.

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

diff --git a/ipc/msg.c b/ipc/msg.c
index a71af5a..2f272fa 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -793,12 +793,9 @@ long do_msgrcv(int msqid, long *pmtype, void __user *mtext,
msg = walk_msg;
if (mode == SEARCH_LESSEQUAL &&
walk_msg->m_type != 1) {
- msg = walk_msg;
msgtyp = walk_msg->m_type - 1;
- } else {
- msg = walk_msg;
+ } else
break;
- }
}
tmp = tmp->next;
}
Previous Topic: [PATCH v3] posix timers: allocate timer id per process
Next Topic: [PATCH v7 02/10] ipc: &quot;use key as id&quot; functionality for resource get system call i
Goto Forum:
  


Current Time: Sun Nov 03 16:09:17 GMT 2024

Total time taken to generate the page: 0.03537 seconds