Skip to content

Commit 8948c49

Browse files
committed
address comments
1 parent a32a8a1 commit 8948c49

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cmds/filesystem.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,8 @@ static int btrfs_scan_kernel(void *search, unsigned unit_mode)
480480
fd = open(mnt->mnt_dir, O_RDONLY);
481481
if ((fd != -1) && !get_df(fd, &space_info_arg)) {
482482
/* put spacing between filesystem entries for readability */
483-
if (found != 0) {
483+
if (found != 0)
484484
pr_verbose(LOG_DEFAULT, "\n");
485-
}
486485

487486
print_one_fs(&fs_info_arg, dev_info_arg,
488487
space_info_arg, label, unit_mode);
@@ -760,7 +759,7 @@ static int cmd_filesystem_show(const struct cmd_struct *cmd,
760759
char uuid_buf[BTRFS_UUID_UNPARSED_SIZE];
761760
unsigned unit_mode;
762761
int found = 0;
763-
int needs_newline = 0;
762+
bool needs_newline = false;
764763

765764
unit_mode = get_unit_mode_from_arg(&argc, argv, 0);
766765

@@ -891,9 +890,9 @@ static int cmd_filesystem_show(const struct cmd_struct *cmd,
891890

892891
list_for_each_entry(fs_devices, &all_uuids, fs_list) {
893892
/* put spacing between filesystem entries for readability */
894-
if (needs_newline) {
893+
if (needs_newline)
895894
pr_verbose(LOG_DEFAULT, "\n");
896-
}
895+
897896
print_one_uuid(fs_devices, unit_mode);
898897
needs_newline = true;
899898
}

0 commit comments

Comments
 (0)