diff options
author | Jiro SEKIBA <jir@unicus.jp> | 2010-02-05 15:15:26 +0100 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-02-13 04:26:03 +0100 |
commit | 086d1764b22bb2d9d79bb8e2198927acf028d732 (patch) | |
tree | c52f5319998362c208d3f764c2666935c5dfce21 /fs/nilfs2/dat.c | |
parent | nilfs2: fix potential hang in nilfs_error on errors=remount-ro (diff) | |
download | linux-086d1764b22bb2d9d79bb8e2198927acf028d732.tar.xz linux-086d1764b22bb2d9d79bb8e2198927acf028d732.zip |
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: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/dat.c')
-rw-r--r-- | fs/nilfs2/dat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/dat.c b/fs/nilfs2/dat.c index 187dd07ba86c..9d1e5de91afb 100644 --- a/fs/nilfs2/dat.c +++ b/fs/nilfs2/dat.c @@ -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); |