btrfs-util: shorten a bit

This commit is contained in:
David Tardon
2022-11-30 16:56:40 +01:00
parent 359e8d76e8
commit 246caacbb4

View File

@@ -511,10 +511,7 @@ int btrfs_subvol_get_info_fd(int fd, uint64_t subvol_id, BtrfsSubvolInfo *ret) {
}
finish:
if (!found)
return -ENODATA;
return 0;
return found ? 0 : -ENODATA;
}
int btrfs_qgroup_get_quota_fd(int fd, uint64_t qgroupid, BtrfsQuotaInfo *ret) {