Skip to content

Commit

Permalink
f2fs: remove unneeded initializations in f2fs_parent_dir
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Amit Sahrawat <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
namjaejeon authored and Jaegeuk Kim committed May 28, 2013
1 parent 35b09d8 commit 4777f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/f2fs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4777f86

Please sign in to comment.