git: sys/vfs/autofs: Cleanups

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Mar 6 11:32:28 PST 2018


commit 662e8088622360d8af1155902a0f8b55a451a63d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed Mar 7 03:27:04 2018 +0900

    sys/vfs/autofs: Cleanups
    
    Move local varaibles to inner scopes where possible.
    The existing local variable declarations are mostly from FreeBSD,
    but I've also changed NetBSD autofs the way this commit does.
    
    (Don't do this for autofs userspace though. Increasing diff from
    FreeBSD for non functional thing like this is much less important,
    whereas kernel side is basically a rewrite.)

Summary of changes:
 sys/vfs/autofs/autofs.c        | 20 +++++++++++---------
 sys/vfs/autofs/autofs_vfsops.c | 10 ++++++----
 sys/vfs/autofs/autofs_vnops.c  |  5 ++---
 3 files changed, 19 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/662e8088622360d8af1155902a0f8b55a451a63d


-- 
DragonFly BSD source repository



More information about the Commits mailing list