Skip to content

Commit

Permalink
ipc: remove forced assignment of selected message
Browse files Browse the repository at this point in the history
This is a cleanup patch. The assignment is redundant.

Signed-off-by: Stanislav Kinsbursky <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Al Viro <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Michael Kerrisk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Stanislav Kinsbursky authored and torvalds committed Jan 5, 2013
1 parent 2d79cf8 commit 9afdacd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9afdacd

Please sign in to comment.