osandov / rpms / btrfs-progs

Forked from rpms/btrfs-progs 2 years ago
Clone
Josef Bacik 2a45a0
diff --git a/mkfs.c b/mkfs.c
Josef Bacik 0b025a
index d664254..138bcc9 100644
Josef Bacik 2a45a0
--- a/mkfs.c
Josef Bacik 2a45a0
+++ b/mkfs.c
Josef Bacik 0b025a
@@ -294,7 +294,6 @@ static u64 parse_profile(char *s)
Josef Bacik 0b025a
 
Josef Bacik 0b025a
 static char *parse_label(char *input)
Josef Bacik 0b025a
 {
Josef Bacik 0b025a
-	int i;
Josef Bacik 0b025a
 	int len = strlen(input);
Josef Bacik 0b025a
 
Josef Bacik 0b025a
 	if (len > BTRFS_LABEL_SIZE) {
Josef Bacik 0b025a
@@ -302,12 +301,6 @@ static char *parse_label(char *input)
Josef Bacik 2a45a0
 			BTRFS_LABEL_SIZE);
Josef Bacik 2a45a0
 		exit(1);
Josef Bacik 2a45a0
 	}
Josef Bacik 2a45a0
-	for (i = 0; i < len; i++) {
Josef Bacik 2a45a0
-		if (input[i] == '/' || input[i] == '\\') {
Josef Bacik 2a45a0
-			fprintf(stderr, "invalid label %s\n", input);
Josef Bacik 2a45a0
-			exit(1);
Josef Bacik 2a45a0
-		}
Josef Bacik 2a45a0
-	}
Josef Bacik 2a45a0
 	return strdup(input);
Josef Bacik 2a45a0
 }
Josef Bacik 2a45a0