From 9969b9dc28caf2a5cc89f5c87d0930e24caab69e Mon Sep 17 00:00:00 2001 From: tkusumi Date: Sun, 1 Dec 2019 06:53:31 +0000 Subject: 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. --- sys/dev/dm/dm_ioctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/dm/dm_ioctl.c') diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c index 747ef596623..2272a275d5a 100644 --- a/sys/dev/dm/dm_ioctl.c +++ b/sys/dev/dm/dm_ioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_ioctl.c,v 1.34 2019/11/30 05:35:57 tkusumi Exp $ */ +/* $NetBSD: dm_ioctl.c,v 1.35 2019/12/01 06:53:31 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.34 2019/11/30 05:35:57 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.35 2019/12/01 06:53:31 tkusumi Exp $"); /* * Locking is used to synchronise between ioctl calls and between dm_table's @@ -246,7 +246,6 @@ dm_dev_create_ioctl(prop_dictionary_t dm_dict) dmv->flags = 0; /* device flags are set when needed */ dmv->ref_cnt = 0; dmv->event_nr = 0; - dmv->dev_type = 0; dmv->devt = devt; dm_table_head_init(&dmv->table_head); -- cgit