aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2013-01-04 18:34:47 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-04 19:11:45 -0500
commit9afdacda0252fc1ddb7907728e878518edbcdfce (patch)
tree1ec270f4fd688353c51c2d21f26b22b00f7ef65a /ipc
parent2d79cf8a9dfbaef1e57c88a709689577c8482a17 (diff)
ipc: remove forced assignment of selected message
This is a cleanup patch. The assignment is redundant. 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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/msg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index a71af5a65abf..2f272fa76595 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -793,12 +793,9 @@ long do_msgrcv(int msqid, long *pmtype, void __user *mtext,
793 msg = walk_msg; 793 msg = walk_msg;
794 if (mode == SEARCH_LESSEQUAL && 794 if (mode == SEARCH_LESSEQUAL &&
795 walk_msg->m_type != 1) { 795 walk_msg->m_type != 1) {
796 msg = walk_msg;
797 msgtyp = walk_msg->m_type - 1; 796 msgtyp = walk_msg->m_type - 1;
798 } else { 797 } else
799 msg = walk_msg;
800 break; 798 break;
801 }
802 } 799 }
803 tmp = tmp->next; 800 tmp = tmp->next;
804 } 801 }