btrfs-progs: remove unnecessary NULL check after get_df()

If get_df() returns 0, "sargs" surely points to malloc'ed region.
So NULL check of sargs is not necessary.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
master
Satoru Takeuchi 2014-07-30 16:26:32 +09:00 committed by David Sterba
parent eb39e765f1
commit acf2652649
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ static int cmd_df(int argc, char **argv)
}
ret = get_df(fd, &sargs);
if (!ret && sargs) {
if (ret == 0) {
print_df(sargs);
free(sargs);
} else {