sys/dev/disk/dm: Make init/destroy handlers optional
commit19bd59e4a136d9f93320462c0b42eae5b3e97dd3
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 27 Nov 2016 05:35:27 +0000 (27 14:35 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 27 Nov 2016 05:40:00 +0000 (27 14:40 +0900)
treef766fe612c591c4f2db14343bf8241a1fabe9dd4
parentc662db9a18424b81164b14d2f9a06c43261ff5ce
sys/dev/disk/dm: Make init/destroy handlers optional

Some targets don't need to do anything in init/destroy handler,
as there is no private data to init/cleanup, so make them optional.

table_en->target_config can be set to NULL regardless of destroy
handler or its result.
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/dm_ioctl.c
sys/dev/disk/dm/dm_table.c
sys/dev/disk/dm/dm_target.c
sys/dev/disk/dm/dm_target_error.c
sys/dev/disk/dm/dm_target_zero.c