Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086d1764 authored by Jiro SEKIBA's avatar Jiro SEKIBA Committed by Ryusuke Konishi
Browse files

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: default avatarJiro SEKIBA <jir@unicus.jp>
Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent fe5f171b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -388,7 +388,6 @@ int nilfs_dat_translate(struct inode *dat, __u64 vblocknr, sector_t *blocknrp)
		ret = -ENOENT;
		goto out;
	}
	if (blocknrp != NULL)
	*blocknrp = blocknr;

 out: