diff options
| author | tkusumi <tkusumi@NetBSD.org> | 2019-12-15 10:12:45 +0000 |
|---|---|---|
| committer | tkusumi <tkusumi@NetBSD.org> | 2019-12-15 10:12:45 +0000 |
| commit | 7896be8aaa02cb2868056f7d9ed0dad88d9724f6 (patch) | |
| tree | 298eb690d1ac8a966a86ac0a97317900539212bf /sys/dev/dm/dm_target.c | |
| parent | e743ff438f64f91780a30c0b65f8fce630593334 (diff) | |
dm: Make targets' ->sync() optional
Apparently some targets have nothing to sync, so make it optional.
Diffstat (limited to 'sys/dev/dm/dm_target.c')
| -rw-r--r-- | sys/dev/dm/dm_target.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/dm/dm_target.c b/sys/dev/dm/dm_target.c index d02dc83d2a3..fa4faf13492 100644 --- a/sys/dev/dm/dm_target.c +++ b/sys/dev/dm/dm_target.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target.c,v 1.30 2019/12/15 09:42:29 tkusumi Exp $ */ +/* $NetBSD: dm_target.c,v 1.31 2019/12/15 10:12:45 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.c,v 1.30 2019/12/15 09:42:29 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target.c,v 1.31 2019/12/15 10:12:45 tkusumi Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -180,10 +180,6 @@ dm_target_insert(dm_target_t *dm_target) printf("%s missing upcall\n", dm_target->name); return EINVAL; } - if (dm_target->sync == NULL) { - printf("%s missing sync\n", dm_target->name); - return EINVAL; - } mutex_enter(&dm_target_mutex); |
