summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--super0.c2
-rw-r--r--super1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/super0.c b/super0.c
index b8dfdb44..5db118ca 100644
--- a/super0.c
+++ b/super0.c
@@ -113,7 +113,7 @@ static void examine_super0(struct supertype *st, char *homehost)
printf(" Creation Time : %.24s\n", ctime(&atime));
c=map_num(pers, sb->level);
printf(" Raid Level : %s\n", c?c:"-unknown-");
- if ((int)sb->level >= 0) {
+ if ((int)sb->level > 0) {
int ddsks=0;
printf(" Used Dev Size : %d%s\n", sb->size,
human_size((long long)sb->size<<10));
diff --git a/super1.c b/super1.c
index 216690d4..dc2021fc 100644
--- a/super1.c
+++ b/super1.c
@@ -239,7 +239,7 @@ static void examine_super1(struct supertype *st, char *homehost)
printf(" Avail Dev Size : %llu%s\n",
(unsigned long long)__le64_to_cpu(sb->data_size),
human_size(__le64_to_cpu(sb->data_size)<<9));
- if (__le32_to_cpu(sb->level) >= 0) {
+ if (__le32_to_cpu(sb->level) > 0) {
int ddsks=0;
switch(__le32_to_cpu(sb->level)) {
case 1: ddsks=1;break;