summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/drivetemp.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2020-05-09 22:13:33 +0200
committerGuenter Roeck <linux@roeck-us.net>2020-05-09 22:22:34 +0200
commitbcb543cc3d4034da3f3fd8bc4296a26dfeadf47d (patch)
treee8f4a111c9a1cf30360e8943e41e8b678a830385 /drivers/hwmon/drivetemp.c
parentLinux 5.7-rc2 (diff)
downloadlinux-bcb543cc3d4034da3f3fd8bc4296a26dfeadf47d.tar.xz
linux-bcb543cc3d4034da3f3fd8bc4296a26dfeadf47d.zip
hwmon: (drivetemp) Fix SCT support if SCT data tables are not supported
If SCT is supported but SCT data tables are not, the driver unnecessarily tries to fall back to SMART. Use SCT without data tables instead in this situation. Fixes: 5b46903d8bf3 ("hwmon: Driver for disk and solid state drives with temperature sensors") Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/drivetemp.c')
-rw-r--r--drivers/hwmon/drivetemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/drivetemp.c b/drivers/hwmon/drivetemp.c
index 9179460c2d9d..0d4f3d97ffc6 100644
--- a/drivers/hwmon/drivetemp.c
+++ b/drivers/hwmon/drivetemp.c
@@ -346,7 +346,7 @@ static int drivetemp_identify_sata(struct drivetemp_data *st)
st->have_temp_highest = temp_is_valid(buf[SCT_STATUS_TEMP_HIGHEST]);
if (!have_sct_data_table)
- goto skip_sct;
+ goto skip_sct_data;
/* Request and read temperature history table */
memset(buf, '\0', sizeof(st->smartdata));