summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/tune2fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 7d5c092b..7aacff3a 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -937,7 +937,7 @@ static void parse_extended_opts(ext2_filsys fs, const char *opts)
continue;
}
stride = strtoul(arg, &p, 0);
- if (*p || (stride == 0)) {
+ if (*p) {
fprintf(stderr,
_("Invalid RAID stride: %s\n"),
arg);
@@ -952,7 +952,7 @@ static void parse_extended_opts(ext2_filsys fs, const char *opts)
continue;
}
stripe_width = strtoul(arg, &p, 0);
- if (*p || (stripe_width == 0)) {
+ if (*p) {
fprintf(stderr,
_("Invalid RAID stripe-width: %s\n"),
arg);