From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: [PATCH] UBIFS: correct condition to eliminate unecessary assignment Date: Tue, 30 Sep 2008 12:19:17 +0300 Message-ID: <1222766358-21886-22-git-send-email-dedekind@infradead.org> References: <1222766358-21886-1-git-send-email-dedekind@infradead.org> Cc: Adrian Hunter , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org To: linux-fsdevel@vger.kernel.org Return-path: Received: from smtp.nokia.com ([192.100.105.134]:18987 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752323AbYI3HmD (ORCPT ); Tue, 30 Sep 2008 03:42:03 -0400 In-Reply-To: <1222766358-21886-1-git-send-email-dedekind@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Adrian Hunter Signed-off-by: Adrian Hunter --- fs/ubifs/tnc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c index e0878a4..d27fd91 100644 --- a/fs/ubifs/tnc.c +++ b/fs/ubifs/tnc.c @@ -1600,7 +1600,7 @@ out: * An enormous hole could cause bulk-read to encompass too many * page cache pages, so limit the number here. */ - if (bu->blk_cnt >= UBIFS_MAX_BULK_READ) + if (bu->blk_cnt > UBIFS_MAX_BULK_READ) bu->blk_cnt = UBIFS_MAX_BULK_READ; /* * Ensure that bulk-read covers a whole number of page cache -- 1.5.4.1