diff options
| author | tkusumi <tkusumi@NetBSD.org> | 2019-12-01 06:53:31 +0000 |
|---|---|---|
| committer | tkusumi <tkusumi@NetBSD.org> | 2019-12-01 06:53:31 +0000 |
| commit | 9969b9dc28caf2a5cc89f5c87d0930e24caab69e (patch) | |
| tree | 7714c099cc4a3f7d215ff85501cc1a896402801e /sys/dev/dm/dm_target_mirror.c | |
| parent | 7b816a505d3753358b6bae048646779ae08f3b17 (diff) | |
dm: Remove unused dm_dev::dev_type
Given OOP-like architecture of dm target device structure,
dm_dev doesn't need to have self contained target type field,
and in fact this is unused.
Diffstat (limited to 'sys/dev/dm/dm_target_mirror.c')
| -rw-r--r-- | sys/dev/dm/dm_target_mirror.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/dm/dm_target_mirror.c b/sys/dev/dm/dm_target_mirror.c index 8087884faa1..0183f8ee204 100644 --- a/sys/dev/dm/dm_target_mirror.c +++ b/sys/dev/dm/dm_target_mirror.c @@ -1,4 +1,4 @@ -/*$NetBSD: dm_target_mirror.c,v 1.10 2018/01/05 14:22:26 christos Exp $*/ +/*$NetBSD: dm_target_mirror.c,v 1.11 2019/12/01 06:53:31 tkusumi Exp $*/ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dm_target_mirror.c,v 1.10 2018/01/05 14:22:26 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_mirror.c,v 1.11 2019/12/01 06:53:31 tkusumi Exp $"); /* * This file implements initial version of device-mapper mirror target. @@ -122,8 +122,6 @@ dm_target_mirror_init(dm_dev_t * dmv, void **target_config, char *argv) *target_config = NULL; - dmv->dev_type = DM_MIRROR_DEV; - return ENOSYS; } |
