Skip to contentSkip to conversation

drm/amd/powerplay: indent a couple if statements

PATCH Applied Dan Carpenter 2 participants 2 messages Jan 20, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/powerplay: indent a couple if statements

We recently redid the indenting, but missed these two if statements.

drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h +2 -2
index b7429a5..b10df32 100644
@@ -293,7 +293,7 @@ fInt GetScaledFraction(int X, int factor)
 	}
 
 	if (factor == 1)
-	return (ConvertToFraction(X));
+		return ConvertToFraction(X);
 
 	fValue = fDivide(ConvertToFraction(X * uPow(-1, bNEGATED)), ConvertToFraction(factor));
 
@@ -371,7 +371,7 @@ fInt fDivide (fInt X, fInt Y)
 	fZERO = ConvertToFraction(0);
 
 	if (Equal(Y, fZERO))
-	return fZERO;
+		return fZERO;
 
 	longlongX = (int64_t)X.full;
 	longlongY = (int64_t)Y.full;
Applied
#1 lore raw
Quoted 3 lines · Dan Carpenter

We recently redid the indenting, but missed these two if statements.

Applied. thanks!

Alex

Quoted 27 lines
drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h +2 -2
index b7429a5..b10df32 100644
@@ -293,7 +293,7 @@ fInt GetScaledFraction(int X, int factor)
        }
 
        if (factor = 1)
-       return (ConvertToFraction(X));
+               return ConvertToFraction(X);
 
        fValue = fDivide(ConvertToFraction(X * uPow(-1, bNEGATED)), ConvertToFraction(factor));
 
@@ -371,7 +371,7 @@ fInt fDivide (fInt X, fInt Y)
        fZERO = ConvertToFraction(0);
 
        if (Equal(Y, fZERO))
-       return fZERO;
+               return fZERO;
 
        longlongX = (int64_t)X.full;
        longlongY = (int64_t)Y.full;

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel