Commit 8f44f316 authored by yangerkun's avatar yangerkun Committed by Hans de Goede

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Link: https://lore.kernel.org/r/20210607014702.2981097-1-yangerkun@huawei.comSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 77d06ec6
......@@ -829,7 +829,7 @@ static u16 calc_avg_temp(struct ips_driver *ips, u16 *array)
static u16 read_mgtv(struct ips_driver *ips)
{
u16 ret;
u16 __maybe_unused ret;
u64 slope, offset;
u64 val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment