Skip to content

Commit bcb543c

Browse files
committed
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: 5b46903 ("hwmon: Driver for disk and solid state drives with temperature sensors") Signed-off-by: Guenter Roeck <[email protected]>
1 parent ae83d0b commit bcb543c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/drivetemp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static int drivetemp_identify_sata(struct drivetemp_data *st)
346346
st->have_temp_highest = temp_is_valid(buf[SCT_STATUS_TEMP_HIGHEST]);
347347

348348
if (!have_sct_data_table)
349-
goto skip_sct;
349+
goto skip_sct_data;
350350

351351
/* Request and read temperature history table */
352352
memset(buf, '\0', sizeof(st->smartdata));

0 commit comments

Comments
 (0)