Commit 021bc89
committed
btrfs-progs: remove the unnecessary device_get_partition_size() call
Inside function _cmd_filesystem_usage_tabular(), there is a call of
device_get_partition_size() to calculate @unused.
However immediately after that call, @unused is updated using
devinfo->size, so that the previous call of device_get_partition_size()
is completely useless.
Just remove the unnecessary call.
And since we're here, also remove a dead newline in that loop at
variable declaration.
Fixes: 7ab0c46 ("btrfs-progs: fi usage: fix unallocated and print total and slack")
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>1 parent 0c646f7 commit 021bc89
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
963 | 962 | | |
964 | 963 | | |
965 | 964 | | |
| |||
1000 | 999 | | |
1001 | 1000 | | |
1002 | 1001 | | |
1003 | | - | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | 1004 | | |
| |||
0 commit comments