diff options
| author | tkusumi <tkusumi@NetBSD.org> | 2019-12-02 16:10:34 +0000 |
|---|---|---|
| committer | tkusumi <tkusumi@NetBSD.org> | 2019-12-02 16:10:34 +0000 |
| commit | bb5445dca3e1ed0d01ab3bcda15863b47ec35cd0 (patch) | |
| tree | 25c5303e04871b0c846797f26131bc670446dbf7 /sys/dev/dm/dm_target_linear.c | |
| parent | 9b4b596e605c15ef3ec146cdd542a468978846b0 (diff) | |
dm: Remove misleading comment on linear target arg
The offset arg is mandatory.
Remove code and comment that makes it sounds like it's optional.
taken-from: DragonFlyBSD
Diffstat (limited to 'sys/dev/dm/dm_target_linear.c')
| -rw-r--r-- | sys/dev/dm/dm_target_linear.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/dm/dm_target_linear.c b/sys/dev/dm/dm_target_linear.c index d7545e6e336..7210569a546 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.19 2019/12/01 06:53:31 tkusumi Exp $ */ +/* $NetBSD: dm_target_linear.c,v 1.20 2019/12/02 16:10:34 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.19 2019/12/01 06:53:31 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.20 2019/12/02 16:10:34 tkusumi Exp $"); /* * This file implements initial version of device-mapper dklinear target. @@ -85,9 +85,6 @@ dm_target_linear_init(dm_dev_t * dmv, void **target_config, char *params) tlc = kmem_alloc(sizeof(dm_target_linear_config_t), KM_SLEEP); tlc->pdev = dmp; - tlc->offset = 0; /* default settings */ - - /* Check user input if it is not leave offset as 0. */ tlc->offset = atoi(argv[1]); *target_config = tlc; |
