git: sbin/hammer: Remove unnecessary zone encoding
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Fri Jul 17 09:50:03 PDT 2015
commit 0ad9354038be3d9c338ed2117144934e633a7312
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Tue Jul 14 20:48:25 2015 +0900
sbin/hammer: Remove unnecessary zone encoding
- This zone encoding isn't necessary since *result_offp is already
'zone' offset. HAMMER_ZONE_ENCODE() only cuts off zone bits from
*result_offp and then |= with 'zone' for zone bits, which results
the same as *result_offp.
- Also the name of the local variable 'zone2_offset' should have been
'zoneX_offset' since zone depends on what the 'zone' value is.
Summary of changes:
sbin/hammer/ondisk.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0ad9354038be3d9c338ed2117144934e633a7312
--
DragonFly BSD source repository
More information about the Commits
mailing list