Skip to contentSkip to conversation

f2fs: remove an excess variable

PATCH In review LiFan 2 participants 2 messages Nov 25, 2017 1 message not in the archive F2FS file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20171125034720epcas5p3c538fec0b4669db7a0e36fc80851aa3d@epcas5p3.samsung.com

LiFan

author
#1 lore raw

PATCH 1/1 f2fs: remove an excess variable

Remove the variable page_idx which no one would miss.

---
 fs/f2fs/data.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
fs/f2fs/data.c +1 -3
index b0781ed..1a93333 100644
@@ -1198,7 +1198,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;
@@ -1215,8 +1214,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);
 
Signature · 1 line
2.7.4