File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -3696,7 +3696,6 @@ static int asus_wmi_custom_fan_curve_init(struct asus_wmi *asus)
3696
3696
/* Throttle thermal policy ****************************************************/
3697
3697
static int throttle_thermal_policy_write (struct asus_wmi * asus )
3698
3698
{
3699
- u32 retval ;
3700
3699
u8 value ;
3701
3700
int err ;
3702
3701
@@ -3718,8 +3717,8 @@ static int throttle_thermal_policy_write(struct asus_wmi *asus)
3718
3717
value = asus -> throttle_thermal_policy_mode ;
3719
3718
}
3720
3719
3721
- err = asus_wmi_set_devstate ( asus -> throttle_thermal_policy_dev ,
3722
- value , & retval );
3720
+ /* Some machines do not return an error code as a result, so we ignore it */
3721
+ err = asus_wmi_set_devstate ( asus -> throttle_thermal_policy_dev , value , NULL );
3723
3722
3724
3723
sysfs_notify (& asus -> platform_device -> dev .kobj , NULL ,
3725
3724
"throttle_thermal_policy" );
@@ -3729,12 +3728,6 @@ static int throttle_thermal_policy_write(struct asus_wmi *asus)
3729
3728
return err ;
3730
3729
}
3731
3730
3732
- if (retval != 1 ) {
3733
- pr_warn ("Failed to set throttle thermal policy (retval): 0x%x\n" ,
3734
- retval );
3735
- return - EIO ;
3736
- }
3737
-
3738
3731
/* Must set to disabled if mode is toggled */
3739
3732
if (asus -> cpu_fan_curve_available )
3740
3733
asus -> custom_fan_curves [FAN_CURVE_DEV_CPU ].enabled = false;
You can’t perform that action at this time.
0 commit comments