git: sys/dev/disk/dm: Don't force targets to implement table handler

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Nov 7 10:41:19 PST 2015


commit eca20b991b43999389bbc881760d9e5aa9ed5d9d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Nov 8 02:37:59 2015 +0900

    sys/dev/disk/dm: Don't force targets to implement table handler
    
    All targets implementing table handler is redundant as some
    of them don't need to do anything. Avoid it by a simple NULL
    check, just like what's been done to other handlers.

Summary of changes:
 sys/dev/disk/dm/dm_ioctl.c        | 9 +++++----
 sys/dev/disk/dm/dm_target_error.c | 8 --------
 sys/dev/disk/dm/dm_target_zero.c  | 9 ---------
 3 files changed, 5 insertions(+), 21 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list