Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dm dm: Remove misleading comment on linear target arg



details:   https://anonhg.NetBSD.org/src/rev/856211112eb6
branches:  trunk
changeset: 465702:856211112eb6
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Mon Dec 02 16:10:34 2019 +0000

description:
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:

 sys/dev/dm/dm_target_linear.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r adcbe02526f8 -r 856211112eb6 sys/dev/dm/dm_target_linear.c
--- a/sys/dev/dm/dm_target_linear.c     Mon Dec 02 15:17:43 2019 +0000
+++ b/sys/dev/dm/dm_target_linear.c     Mon Dec 02 16:10:34 2019 +0000
@@ -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 @@
 
        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;



Home | Main Index | Thread Index | Old Index