Signed-off-by: Hubert Kario <kario@xxxxxxxxxx>
diff --git a/cmds-device.c b/cmds-device.c
index a28752f..b1e70f9 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -261,8 +261,6 @@ static int cmd_zero_dev(int argc, char **argv)
int arg_processed;
int ret = 0;
int n;
- u64 device_len;
- int mixed_mode_needed = 1; /* keep btrfs_prepare_device() quiet */
if( argc < 2 ) {
usage(cmd_zero_dev_usage);
@@ -278,8 +276,7 @@ static int cmd_zero_dev(int argc, char **argv)
continue;
}
- n = btrfs_prepare_device(fd, file, &device_len,
- &mixed_mode_needed);
+ n = btrfs_prepare_device(fd, file, NULL, NULL);
if (n) {
fprintf(stderr, "Error when zeroing out %s\n", file);
ret |= n;
--
1.7.10
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html