aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/msg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index a71af5a65ab..2f272fa7659 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 }