OpenVZ Forum - RDF feed
https://new-forum.openvz.org/index.php
-
[PATCH v6 01/10] ipc: remove forced assignment of selected message
https://new-forum.openvz.org/index.phpindex.php?t=rview&goto=48350&th=11198#msg_48350
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
---
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;
}]]>
Stanislav Kinsbursky
2012-10-15T15:59:41-00:00
-
Re: [PATCH v6 01/10] ipc: remove forced assignment of selected message
https://new-forum.openvz.org/index.phpindex.php?t=rview&goto=48566&th=11198#msg_48566
skinsbursky@parallels.com):
> This is a cleanup patch. The assignment is redundant.
>
> Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
> ---
> 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;
> }
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html]]>
Serge E. Hallyn
2012-10-23T15:54:48-00:00