summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-12-02 08:11:38 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-11 13:43:44 +0900
commit705f814e34e08f6169439014a2916fd5afbdf232 (patch)
tree710cee6de8f9f68addb8d5999d365e77f60e5546 /fs/f2fs/file.c
parent61412b64b965af72798000c3c921e88db31216b1 (diff)
downloadop-kernel-dev-705f814e34e08f6169439014a2916fd5afbdf232.zip
op-kernel-dev-705f814e34e08f6169439014a2916fd5afbdf232.tar.gz
f2fs: remove unused variable
The variables node_page and page_offset are initialized but never used otherwise, so remove those unused variables. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 89241c5..f9e085d 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -30,7 +30,6 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma,
struct page *page = vmf->page;
struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
- struct page *node_page;
block_t old_blk_addr;
struct dnode_of_data dn;
int err;
@@ -50,7 +49,6 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma,
}
old_blk_addr = dn.data_blkaddr;
- node_page = dn.node_page;
if (old_blk_addr == NULL_ADDR) {
err = reserve_new_block(&dn);
OpenPOWER on IntegriCloud