f2fs: remove unneeded initializations in f2fs_parent_dir
Subsystems (2)
PATCH 2/4 f2fs: remove unneeded initializations in f2fs_parent_dir
From: Namjae Jeon <[email protected]>
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]>
--- fs/f2fs/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
fs/f2fs/dir.c +3 -3
@@ -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))
Signature · 9 lines
1.7.9.5 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may