]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hwmon: (k10temp) Remove unused HAVE_TDIE() macro
authorYazen Ghannam <yazen.ghannam@amd.com>
Thu, 6 Jun 2024 16:13:00 +0000 (11:13 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 12 Jun 2024 09:40:17 +0000 (11:40 +0200)
...to address the following warning:

  drivers/hwmon/k10temp.c:104:9:
  warning: macro is not used [-Wunused-macros]

No functional change is intended.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240606-fix-smn-bad-read-v4-7-ffde21931c3f@amd.com
drivers/hwmon/k10temp.c

index 6deb272c7cef6a6a530bd1548d0b740eb1cd25d0..a2d203304533be0956f5d3ff692df78b76358fb3 100644 (file)
@@ -101,7 +101,6 @@ struct k10temp_data {
 #define TCCD_BIT(x)    ((x) + 2)
 
 #define HAVE_TEMP(d, channel)  ((d)->show_temp & BIT(channel))
-#define HAVE_TDIE(d)           HAVE_TEMP(d, TDIE_BIT)
 
 struct tctl_offset {
        u8 model;