sbin/hammer: Remove unnecessary if(AssertOnFailure) conditionals
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 Mar 2016 07:58:03 +0000 (16:58 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 19 Mar 2016 19:42:37 +0000 (04:42 +0900)
commitf5fd48a5ef0c53bb3be248e358edf2fbc9d9d722
treee3b0713535130cf1144be3b107899dc08099ada5
parentb1f25588473eadc5e67305b3b7c0967acfd79aff
sbin/hammer: Remove unnecessary if(AssertOnFailure) conditionals

If get_volume(vol_no) fails to find a volume, there is basically
no way that /sbin/hammer can proceed the rest of the process,
so if(AssertOnFailure) isn't necessary.

(buf_offset & HAMMER_OFF_ZONE_MASK) == HAMMER_ZONE_RAW_BUFFER
should be checked unconditionally.
sbin/hammer/cmd_blockmap.c
sbin/hammer/cmd_show.c
sbin/hammer/ondisk.c