[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH 18/20] Remove dead assignment in _remove



'r' is not read - remove it.

Signed-off-by: Zdenek Kabelac <zkabelac redhat com>
---
 tools/dmsetup.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 56f1579..ae223d6 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -1386,10 +1386,8 @@ error:
 
 static int _remove(int argc, char **argv, void *data __attribute__((unused)))
 {
-	int r;
-
 	if (_switches[FORCE_ARG] && argc > 1)
-		r = _error_device(argc, argv, NULL);
+		_error_device(argc, argv, NULL);
 
 	return _simple(DM_DEVICE_REMOVE, argc > 1 ? argv[1] : NULL, 0, 0);
 }
-- 
1.7.3.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]