Commit b4009adaaca7913caa953d48478d5f3a146ba988

Con Kolivas 2011-09-11T11:47:22

Remove redundant check.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/adl.c b/adl.c
index f51faea..6b8b3b6 100644
--- a/adl.c
+++ b/adl.c
@@ -771,8 +771,7 @@ static int set_fanspeed(int gpu, int iFanSpeed)
 	 * in case this device does not support fine setting changes */
 	ga->targetfan = iFanSpeed;
 	ga->lpFanSpeedValue.iFlags = ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED;
-	if ((ga->lpFanSpeedInfo.iFlags & ADL_DL_FANCTRL_SUPPORTS_RPM_WRITE) &&
-		!(ga->lpFanSpeedInfo.iFlags & ADL_DL_FANCTRL_SUPPORTS_PERCENT_WRITE)) {
+	if (!(ga->lpFanSpeedInfo.iFlags & ADL_DL_FANCTRL_SUPPORTS_PERCENT_WRITE)) {
 		/* Must convert speed to an RPM */
 		iFanSpeed = ga->lpFanSpeedInfo.iMaxRPM * iFanSpeed / 100;
 		ga->lpFanSpeedValue.iSpeedType = ADL_DL_FANCTRL_SPEED_TYPE_RPM;