Commit 16d12233 authored by Ran Sun's avatar Ran Sun Committed by Alex Deucher
Browse files

drm/amd/pm/powerplay/hwmgr/ppevvmath: Clean up errors in ppevvmath.h



Fix the following errors reported by checkpatch:

ERROR: return is not a function, parentheses are not required
ERROR: space required after that ',' (ctx:VxV)
ERROR: space required before the open parenthesis '('
ERROR: need consistent spacing around '-' (ctx:WxV)

Signed-off-by: default avatarRan Sun <sunran001@208suo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 28b3a733
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ static fInt fNaturalLog(fInt value)

	error_term = fAdd(fNegativeOne, value);

	return (fAdd(solution, error_term));
	return fAdd(solution, error_term);
}

static fInt fDecodeLinearFuse(uint32_t fuse_value, fInt f_min, fInt f_range, uint32_t bitlength)
@@ -230,7 +230,7 @@ static fInt ConvertToFraction(int X) /*Add all range checking here. Is it possib
static fInt fNegate(fInt X)
{
	fInt CONSTANT_NEGONE = ConvertToFraction(-1);
	return (fMultiply(X, CONSTANT_NEGONE));
	return fMultiply(X, CONSTANT_NEGONE);
}

static fInt Convert_ULONG_ToFraction(uint32_t X)
@@ -447,7 +447,7 @@ static fInt fSqrt(fInt num)

	} while (uAbs(error) > 0);

	return (x_new);
	return x_new;
}

static void SolveQuadracticEqn(fInt A, fInt B, fInt C, fInt Roots[])