Skip to content

Commit

Permalink
nilfs2: delete unnecessary condition in nilfs_dat_translate
Browse files Browse the repository at this point in the history
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: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
  • Loading branch information
Jiro SEKIBA authored and Ryusuke Konishi committed Feb 13, 2010
1 parent fe5f171 commit 086d176
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nilfs2/dat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 086d176

Please sign in to comment.