From: Matt Helsley Subject: [PATCH] pid arrays: Remove redundant assignment Date: Mon, 19 Oct 2009 10:17:42 -0700 Message-ID: <1255972662-17633-1-git-send-email-matthltc@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org The only way the preceding loop will terminate is if n already has this value. Signed-off-by: Matt Helsley --- 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