From 0338193ed2c358f0bf0d93e2af43b50751da6e64 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 24 Oct 2015 17:57:09 +0900 Subject: [PATCH] sys/dev/disk/dm: Remove unnecessary () --- sys/dev/disk/dm/device-mapper.c | 4 ++-- sys/dev/disk/dm/dm_ioctl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/disk/dm/device-mapper.c b/sys/dev/disk/dm/device-mapper.c index 8a74d5bcd3..89288a4f74 100644 --- a/sys/dev/disk/dm/device-mapper.c +++ b/sys/dev/disk/dm/device-mapper.c @@ -440,7 +440,7 @@ dmstrategy(struct dev_strategy_args *ap) * I need need number of bytes not blocks. */ table_start = table_en->start * DEV_BSIZE; - table_end = table_start + (table_en->length) * DEV_BSIZE; + table_end = table_start + table_en->length * DEV_BSIZE; /* * Calculate the start and end @@ -526,7 +526,7 @@ dmdump(struct dev_dump_args *ap) * I need need number of bytes not blocks. */ table_start = table_en->start * DEV_BSIZE; - table_end = table_start + (table_en->length) * DEV_BSIZE; + table_end = table_start + table_en->length * DEV_BSIZE; /* * Calculate the start and end diff --git a/sys/dev/disk/dm/dm_ioctl.c b/sys/dev/disk/dm/dm_ioctl.c index 78a62b47ea..2fc793e593 100644 --- a/sys/dev/disk/dm/dm_ioctl.c +++ b/sys/dev/disk/dm/dm_ioctl.c @@ -950,7 +950,7 @@ dm_message_ioctl(prop_dictionary_t dm_dict) } else { SLIST_FOREACH(table_en, tbl, next) { table_start = table_en->start; - table_end = table_start + (table_en->length); + table_end = table_start + table_en->length; if ((sector >= table_start) && (sector < table_end)) { found = 1; -- 2.41.0