Thread (22 messages) flat view 22 messages, 4 authors, 2012-10-23
STALE5052d

Revision v6 of 5 in this series.

Revisions (5)
  1. v4 [diff vs current]
  2. v5 [diff vs current]
  3. v6 current
  4. v7 [diff vs current]
  5. v8 [diff vs current]

[PATCH v6 01/10] ipc: remove forced assignment of selected message

From: Stanislav Kinsbursky <hidden>
Date: 2012-10-15 15:58:23
Also in: lkml
Subsystem: the rest · Maintainer: Linus Torvalds

This is a cleanup patch. The assignment is redundant.

Signed-off-by: Stanislav Kinsbursky <redacted>
---
 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;
 		}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help