From: Adrian Hunter Date: Wed, 17 Sep 2008 09:11:13 +0000 (+0300) Subject: UBIFS: correct condition to eliminate unecessary assignment X-Git-Tag: v2.6.28-rc1~98^2~4 X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=63c300b68fd93a9fadc5e317d4d001b7a6985486;p=linux%2F.git UBIFS: correct condition to eliminate unecessary assignment Signed-off-by: Adrian Hunter --- diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c index e0878a431b9c..d27fd918b9c9 100644 --- a/fs/ubifs/tnc.c +++ b/fs/ubifs/tnc.c @@ -1600,7 +1600,7 @@ int ubifs_tnc_get_bu_keys(struct ubifs_info *c, struct bu_info *bu) * 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