Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (k10temp) Remove unused HAVE_TDIE() macro

...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

authored by

Yazen Ghannam and committed by
Borislav Petkov (AMD)
0e097f2b a8bc4165

-1
-1
drivers/hwmon/k10temp.c
··· 101 101 #define TCCD_BIT(x) ((x) + 2) 102 102 103 103 #define HAVE_TEMP(d, channel) ((d)->show_temp & BIT(channel)) 104 - #define HAVE_TDIE(d) HAVE_TEMP(d, TDIE_BIT) 105 104 106 105 struct tctl_offset { 107 106 u8 model;