提交 63c300b6 编写于 作者: A Adrian Hunter 提交者: Artem Bityutskiy

UBIFS: correct condition to eliminate unecessary assignment

Signed-off-by: NAdrian Hunter <ext-adrian.hunter@nokia.com>
上级 73944a6d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册