git: sys/dev/disk/dm: Refactor dmioctl()

Tomohiro Kusumi tkusumi at
Wed Oct 14 12:35:48 PDT 2015

commit 033bbf9ecbc341389715a9ecfd913cc554f36b7b
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Sun Oct 11 22:09:34 2015 +0900

    sys/dev/disk/dm: Refactor dmioctl()
    Get rid of if-nest and goto.
    This function can be implemented without if-nest and goto,
    and this is way easier to understand without lots of comments.

Summary of changes:
 sys/dev/disk/dm/device-mapper.c | 40 +++++++++++++++-------------------------
 1 file changed, 15 insertions(+), 25 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list