git: kernel: Save some indent here and there and some small cleanup.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Jun 9 11:18:53 PDT 2016


commit 0c77d800c94ec83950e07dd52477a62e83705385
Author: Sascha Wildner <saw at online.de>
Date:   Thu Jun 9 20:12:00 2016 +0200

    kernel: Save some indent here and there and some small cleanup.
    
    All these are related to an inspection of the places where we do:
    
    if (...) {
       ...
       goto blah;
    } else {
       ...
    }
    
    in which case the 'else' is not needed.
    
    I only changed places where I thought that it improves readability or
    is just as readable without the 'else'.

Summary of changes:
 sys/emulation/43bsd/43bsd_socket.c    |  9 ++++-----
 sys/net/altq/altq_rmclass.c           | 15 ++++++---------
 sys/netinet/ip_input.c                |  6 ++----
 sys/platform/pc64/x86_64/mp_machdep.c | 18 ++++++------------
 sys/vfs/hpfs/hpfs_vfsops.c            |  4 +---
 sys/vfs/nfs/nfs_serv.c                |  5 ++---
 6 files changed, 21 insertions(+), 36 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c77d800c94ec83950e07dd52477a62e83705385


-- 
DragonFly BSD source repository



More information about the Commits mailing list