From 8251df4780867c4ec74e1f8f7dff9571a8af310b Mon Sep 17 00:00:00 2001 From: tkusumi Date: Sat, 14 Dec 2019 10:49:30 +0000 Subject: dm: Remove void casts of function calls Use of void casts in dm is not consistent, just get rid of them. --- sys/dev/dm/dm_dev.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/dm/dm_dev.c') diff --git a/sys/dev/dm/dm_dev.c b/sys/dev/dm/dm_dev.c index 1adc4450a35..466706e42d6 100644 --- a/sys/dev/dm/dm_dev.c +++ b/sys/dev/dm/dm_dev.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_dev.c,v 1.14 2019/12/07 15:28:39 tkusumi Exp $ */ +/* $NetBSD: dm_dev.c,v 1.15 2019/12/14 10:49:30 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: dm_dev.c,v 1.14 2019/12/07 15:28:39 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_dev.c,v 1.15 2019/12/14 10:49:30 tkusumi Exp $"); #include #include @@ -306,7 +306,7 @@ dm_dev_destroy(void) mutex_destroy(&dmv->dev_mtx); cv_destroy(&dmv->dev_cv); - (void)kmem_free(dmv, sizeof(dm_dev_t)); + kmem_free(dmv, sizeof(dm_dev_t)); } mutex_exit(&dm_dev_mutex); @@ -340,9 +340,9 @@ dm_dev_free(dm_dev_t *dmv) cv_destroy(&dmv->dev_cv); if (dmv->diskp != NULL) - (void)kmem_free(dmv->diskp, sizeof(struct disk)); + kmem_free(dmv->diskp, sizeof(struct disk)); - (void)kmem_free(dmv, sizeof(dm_dev_t)); + kmem_free(dmv, sizeof(dm_dev_t)); return 0; } -- cgit