sys/vfs/hammer: Remove duplicate calculation of localization
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 24 Feb 2015 11:52:34 +0000 (20:52 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 24 Feb 2015 12:46:10 +0000 (21:46 +0900)
- No need to calculate localization twice.

sys/vfs/hammer/hammer_pfs.c

index a93a02c..ef610c2 100644 (file)
@@ -112,7 +112,6 @@ hammer_ioc_set_pseudofs(hammer_transaction_t trans, hammer_inode_t ip,
        localization = (u_int32_t)pfs->pfs_id << 16;
        if (pfs->version != HAMMER_IOC_PSEUDOFS_VERSION)
                error = EINVAL;
-       localization = (u_int32_t)pfs->pfs_id << 16;
 
        if (error == 0 && pfs->ondisk) {
                /*