Skip to contentSkip to conversation

pid arrays: Remove redundant assignment

PATCH New Matt Helsley 1 participant 1 message Oct 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pid arrays: Remove redundant assignment

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

---
 checkpoint/checkpoint.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
checkpoint/checkpoint.c +0 -1
index 5a76d2b..396ec29 100644
@@ -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;
Signature · 1 line
1.5.6.3