[Devel] [PATCH] pid arrays: Remove redundant assignment

Matt Helsley matthltc at us.ibm.com
Mon Oct 19 10:17:42 PDT 2009


The only way the preceding loop will terminate is if n already has
this value.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 checkpoint/checkpoint.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/checkpoint/checkpoint.c b/checkpoint/checkpoint.c
index 5a76d2b..396ec29 100644
--- a/checkpoint/checkpoint.c
+++ b/checkpoint/checkpoint.c
@@ -490,7 +490,6 @@ static int checkpoint_pids(struct ckpt_ctx *ctx)
 		}
 		rcu_read_unlock();
 
-		n = min(nr_tasks, CKPT_HDR_PIDS_CHUNK);
 		ret = ckpt_kwrite(ctx, h, n * sizeof(*h));
 		if (ret < 0)
 			break;
-- 
1.5.6.3

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list