f2fs: remove an excess variable
authorLiFan <fanofcode.li@samsung.com>
Sat, 25 Nov 2017 03:46:18 +0000 (11:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 3 Jan 2018 03:27:28 +0000 (19:27 -0800)
Remove the variable page_idx which no one would miss.

Signed-off-by: Fan li <fanofcode.li@samsung.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index 3fa20a932dd77ac8801d0179f2efb35cd54f5cfc..457a60ffd3ee9575eddc6ff972d2e002199abaed 100644 (file)
@@ -1204,7 +1204,6 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
                        unsigned nr_pages)
 {
        struct bio *bio = NULL;
-       unsigned page_idx;
        sector_t last_block_in_bio = 0;
        struct inode *inode = mapping->host;
        const unsigned blkbits = inode->i_blkbits;
@@ -1221,8 +1220,7 @@ static int f2fs_mpage_readpages(struct address_space *mapping,
        map.m_flags = 0;
        map.m_next_pgofs = NULL;
 
-       for (page_idx = 0; nr_pages; page_idx++, nr_pages--) {
-
+       for (; nr_pages; nr_pages--) {
                if (pages) {
                        page = list_last_entry(pages, struct page, lru);