Skip to content

Commit 9afdacd

Browse files
Stanislav Kinsburskytorvalds
authored andcommitted
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>
1 parent 2d79cf8 commit 9afdacd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎ipc/msg.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,12 +793,9 @@ long do_msgrcv(int msqid, long *pmtype, void __user *mtext,
793793
msg = walk_msg;
794794
if (mode == SEARCH_LESSEQUAL &&
795795
walk_msg->m_type != 1) {
796-
msg = walk_msg;
797796
msgtyp = walk_msg->m_type - 1;
798-
} else {
799-
msg = walk_msg;
797+
} else
800798
break;
801-
}
802799
}
803800
tmp = tmp->next;
804801
}

0 commit comments

Comments
 (0)