mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
btrfs: rename err to ret in calc_pct_ratio()
Unify naming of return value to the preferred way. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3b5742f379
commit
60a8bab08c
|
|
@ -1973,13 +1973,13 @@ u64 btrfs_account_ro_block_groups_free_space(struct btrfs_space_info *sinfo)
|
|||
|
||||
static u64 calc_pct_ratio(u64 x, u64 y)
|
||||
{
|
||||
int err;
|
||||
int ret;
|
||||
|
||||
if (!y)
|
||||
return 0;
|
||||
again:
|
||||
err = check_mul_overflow(100, x, &x);
|
||||
if (err)
|
||||
ret = check_mul_overflow(100, x, &x);
|
||||
if (ret)
|
||||
goto lose_precision;
|
||||
return div64_u64(x, y);
|
||||
lose_precision:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user