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

[lvm-devel] [patch 3/7] A two code blocks above, the code makes sure that lv_name isnt NULL. No need to make this check here.



Signed-off-by: Mikulas Patocka <mpatocka redhat com>

---
 tools/lvcreate.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: LVM2.2.02.45/tools/lvcreate.c
===================================================================
--- LVM2.2.02.45.orig/tools/lvcreate.c	2009-05-19 12:30:19.000000000 +0200
+++ LVM2.2.02.45/tools/lvcreate.c	2009-05-19 12:30:57.000000000 +0200
@@ -744,8 +744,7 @@ static int _lvcreate(struct cmd_context 
 		}
 	}
 
-	if (!(lv = lv_create_empty(lv_name ? lv_name : "lvol%d", NULL,
-				   status, lp->alloc, 0, vg)))
+	if (!(lv = lv_create_empty(lv_name, NULL, status, lp->alloc, 0, vg)))
 		return_0;
 
 	if (lp->read_ahead) {

-- 


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