git: sbin/hammer: Remove unnecessary if(AssertOnFailure) conditionals

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Mar 19 14:27:43 PDT 2016


commit f5fd48a5ef0c53bb3be248e358edf2fbc9d9d722
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Mar 8 16:58:03 2016 +0900

    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.

Summary of changes:
 sbin/hammer/cmd_blockmap.c |  7 ++-----
 sbin/hammer/cmd_show.c     |  2 --
 sbin/hammer/ondisk.c       | 14 ++++----------
 3 files changed, 6 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f5fd48a5ef0c53bb3be248e358edf2fbc9d9d722


-- 
DragonFly BSD source repository


More information about the Commits mailing list