提交 086d1764 编写于 作者: J Jiro SEKIBA 提交者: Ryusuke Konishi

nilfs2: delete unnecessary condition in nilfs_dat_translate

This is a trivial patch to delete unnecessary condition in nilfs_dat_translate.

nilfs_dat_translate() will asign translated address to *blocknrp if blocknrp
is not NULL.  However the condition is unneeded, because all callers of
nilfs_dat_translate() pass blocknrp properly.
Signed-off-by: NJiro SEKIBA <jir@unicus.jp>
Signed-off-by: NRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
上级 fe5f171b
......@@ -388,8 +388,7 @@ int nilfs_dat_translate(struct inode *dat, __u64 vblocknr, sector_t *blocknrp)
ret = -ENOENT;
goto out;
}
if (blocknrp != NULL)
*blocknrp = blocknr;
*blocknrp = blocknr;
out:
kunmap_atomic(kaddr, KM_USER0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册