Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm remove unused variables
details: https://anonhg.NetBSD.org/src/rev/3ee8e36e3f42
branches: trunk
changeset: 790629:3ee8e36e3f42
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 18 19:56:30 2013 +0000
description:
remove unused variables
diffstat:
sys/dev/dm/device-mapper.c | 8 ++------
sys/dev/dm/dm_ioctl.c | 8 ++------
2 files changed, 4 insertions(+), 12 deletions(-)
diffs (85 lines):
diff -r efdd4cb04d9b -r 3ee8e36e3f42 sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c Fri Oct 18 19:56:11 2013 +0000
+++ b/sys/dev/dm/device-mapper.c Fri Oct 18 19:56:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device-mapper.c,v 1.30 2013/05/29 00:47:48 christos Exp $ */
+/* $NetBSD: device-mapper.c,v 1.31 2013/10/18 19:56:30 christos Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -487,7 +487,6 @@
{
dm_table_entry_t *table_en;
dm_table_t *tbl;
- int err;
if ((dmv = dm_dev_lookup(NULL, NULL, minor(dev))) == NULL)
return ENODEV;
@@ -501,7 +500,7 @@
*/
SLIST_FOREACH(table_en, tbl, next)
{
- err = table_en->target->sync(table_en);
+ (void)table_en->target->sync(table_en);
}
dm_table_release(&dmv->table_head, DM_TABLE_ACTIVE);
dm_dev_unbusy(dmv);
@@ -529,8 +528,6 @@
dm_table_entry_t *table_en;
struct buf *nestbuf;
- uint32_t dev_type;
-
uint64_t buf_start, buf_len, issued_len;
uint64_t table_start, table_end;
uint64_t start, end;
@@ -541,7 +538,6 @@
tbl = NULL;
table_end = 0;
- dev_type = 0;
issued_len = 0;
if ((dmv = dm_dev_lookup(NULL, NULL, minor(bp->b_dev))) == NULL) {
diff -r efdd4cb04d9b -r 3ee8e36e3f42 sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c Fri Oct 18 19:56:11 2013 +0000
+++ b/sys/dev/dm/dm_ioctl.c Fri Oct 18 19:56:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.26 2011/08/27 17:07:49 ahoka Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.27 2013/10/18 19:56:30 christos Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -614,15 +614,12 @@
uint32_t flags, minor;
int table_type;
- size_t i;
name = NULL;
uuid = NULL;
dmv = NULL;
flags = 0;
- i = 0;
-
prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_NAME, &name);
prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_UUID, &uuid);
prop_dictionary_get_uint32(dm_dict, DM_IOCTL_FLAGS, &flags);
@@ -842,7 +839,7 @@
prop_array_t cmd_array;
prop_dictionary_t target_dict;
- uint32_t rec_size, minor;
+ uint32_t minor;
const char *name, *uuid;
char *params;
@@ -854,7 +851,6 @@
name = NULL;
params = NULL;
flags = 0;
- rec_size = 0;
prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_NAME, &name);
prop_dictionary_get_cstring_nocopy(dm_dict, DM_IOCTL_UUID, &uuid);
Home |
Main Index |
Thread Index |
Old Index