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_linear.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_linear.c')
| -rw-r--r-- | sys/dev/dm/dm_target_linear.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/dm/dm_target_linear.c b/sys/dev/dm/dm_target_linear.c index 322f965f73a..d7545e6e336 100644 --- a/sys/dev/dm/dm_target_linear.c +++ b/sys/dev/dm/dm_target_linear.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target_linear.c,v 1.18 2019/10/15 00:13:53 chs Exp $ */ +/* $NetBSD: dm_target_linear.c,v 1.19 2019/12/01 06:53:31 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.18 2019/10/15 00:13:53 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.19 2019/12/01 06:53:31 tkusumi Exp $"); /* * This file implements initial version of device-mapper dklinear target. @@ -92,8 +92,6 @@ dm_target_linear_init(dm_dev_t * dmv, void **target_config, char *params) *target_config = tlc; - dmv->dev_type = DM_LINEAR_DEV; - return 0; } |
