git: sys/vfs/hammer: Fix error check on mount

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Aug 17 09:06:31 PDT 2015


commit 721f311056acc1d8297ce0283ec9eca746158b68
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Aug 10 03:16:24 2015 +0900

    sys/vfs/hammer: Fix error check on mount
    
    Since it already has failed: that does the same thing,
    goto failed; on each error case makes code more clear.
    
    Remove error==0 from the first if() conditional since
    error isn't 0 when hmp->rootvol==NULL.

Summary of changes:
 sys/vfs/hammer/hammer_vfsops.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/721f311056acc1d8297ce0283ec9eca746158b68


-- 
DragonFly BSD source repository



More information about the Commits mailing list