]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
platform/x86: asus-wmi: Fix "unsigned 'retval' is never less than zero" smatch warning
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 25 Aug 2021 10:37:02 +0000 (18:37 +0800)
committerHans de Goede <hdegoede@redhat.com>
Thu, 26 Aug 2021 13:12:51 +0000 (15:12 +0200)
commit828857f6709f1b13582049a1ef84eadb07f50c05
tree2ab3c16288e2cf23ac50b0778d3bf98098634e84
parentb72067c64b226fc42fd5262cfbb675ec68fb4934
platform/x86: asus-wmi: Fix "unsigned 'retval' is never less than zero" smatch warning

Eliminate the follow smatch warnings:

drivers/platform/x86/asus-wmi.c:478 panel_od_write() warn: unsigned
'retval' is never less than zero.

drivers/platform/x86/asus-wmi.c:566 panel_od_write() warn: unsigned
'retval' is never less than zero.

drivers/platform/x86/asus-wmi.c:1451 panel_od_write() warn: unsigned
'retval' is never less than zero.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: 98829e84dc67 ("asus-wmi: Add dgpu disable method")
Fixes: 382b91db8044 ("asus-wmi: Add egpu enable method")
Fixes: ca91ea34778f ("asus-wmi: Add panel overdrive functionality")
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1629887822-23918-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-wmi.c