Skip to content

Commit 8f44f31

Browse files
yangerkunjwrdegoede
authored andcommitted
platform/x86: intel_ips: fix set but unused warning in read_mgtv
drivers/platform/x86/intel_ips.c:832:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 832 | u16 ret; | ^~~ Fix it by mark ret as '__maybe_unused'. Reported-by: Hulk Robot <[email protected]> Signed-off-by: yangerkun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 77d06ec commit 8f44f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/intel_ips.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ static u16 calc_avg_temp(struct ips_driver *ips, u16 *array)
829829

830830
static u16 read_mgtv(struct ips_driver *ips)
831831
{
832-
u16 ret;
832+
u16 __maybe_unused ret;
833833
u64 slope, offset;
834834
u64 val;
835835

0 commit comments

Comments
 (0)