summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2013-05-23 22:58:07 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:48 +0900
commit2332e210de14be21571edcb40002220c1890c725 (patch)
treea3c5e986fa0a9cffd947770722be3ab140ddecca /fs/f2fs
parent0dc2645221feb0055b0d7df5b3a44c5d07b20c06 (diff)
downloadlinux-3.10-2332e210de14be21571edcb40002220c1890c725.tar.gz
linux-3.10-2332e210de14be21571edcb40002220c1890c725.tar.bz2
linux-3.10-2332e210de14be21571edcb40002220c1890c725.zip
f2fs: remove unneeded initializations in f2fs_parent_dir
There is no need to initialize few pointers in f2fs_parent_dir as the values are not checked and instead directly initialized values are used. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index fc1dacf55b3..b278bfbc364 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -215,9 +215,9 @@ struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir,
struct f2fs_dir_entry *f2fs_parent_dir(struct inode *dir, struct page **p)
{
- struct page *page = NULL;
- struct f2fs_dir_entry *de = NULL;
- struct f2fs_dentry_block *dentry_blk = NULL;
+ struct page *page;
+ struct f2fs_dir_entry *de;
+ struct f2fs_dentry_block *dentry_blk;
page = get_lock_data_page(dir, 0);
if (IS_ERR(page))