aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/sony-laptop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index 78e6389d2cae..b9499b65c1cd 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -2139,7 +2139,7 @@ static ssize_t sony_nc_thermal_mode_show(struct device *dev,
2139 struct device_attribute *attr, char *buffer) 2139 struct device_attribute *attr, char *buffer)
2140{ 2140{
2141 ssize_t count = 0; 2141 ssize_t count = 0;
2142 unsigned int mode = sony_nc_thermal_mode_get(); 2142 int mode = sony_nc_thermal_mode_get();
2143 2143
2144 if (mode < 0) 2144 if (mode < 0)
2145 return mode; 2145 return mode;
@@ -2507,8 +2507,6 @@ static void sony_nc_backlight_ng_read_limits(int handle,
2507 props->maxlvl = 0xff; 2507 props->maxlvl = 0xff;
2508 2508
2509 offset = sony_find_snc_handle(handle); 2509 offset = sony_find_snc_handle(handle);
2510 if (offset < 0)
2511 return;
2512 2510
2513 /* try to read the boundaries from ACPI tables, if we fail the above 2511 /* try to read the boundaries from ACPI tables, if we fail the above
2514 * defaults should be reasonable 2512 * defaults should be reasonable