Commit 0c3a38a
f2fs: Fix not used variable 'index'
Fix the following compilation warning:
fs/f2fs/data.c:2391:10: warning: variable ‘index’ set but not used
[-Wunused-but-set-variable]
2391 | pgoff_t index;
Only define and set the variable index when the CONFIG_F2FS_FS_COMPRESSION
is enabled.
Fixes: db92e6c ("f2fs: convert f2fs_mpage_readpages() to use folio")
Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>1 parent e63ce12 commit 0c3a38a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2385 | 2385 | | |
2386 | 2386 | | |
2387 | 2387 | | |
| 2388 | + | |
2388 | 2389 | | |
2389 | 2390 | | |
2390 | 2391 | | |
2391 | | - | |
2392 | 2392 | | |
2393 | 2393 | | |
2394 | 2394 | | |
| |||
2406 | 2406 | | |
2407 | 2407 | | |
2408 | 2408 | | |
| 2409 | + | |
2409 | 2410 | | |
2410 | 2411 | | |
2411 | | - | |
2412 | 2412 | | |
2413 | 2413 | | |
2414 | 2414 | | |
| |||
0 commit comments