platform/x86: samsung-laptop: Fix an unsigned comparison which can never be negative
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 22 Mar 2022 06:18:30 +0000 (14:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 11:39:43 +0000 (13:39 +0200)
commit10073a95f02c0bf3aa88c63449ba40b0597bd2b1
treed3a58ced2877a0ef8374204e0698a7d07cad7416
parent9ea74573b98b19fcc990cd99b7081e6ecfd04737
platform/x86: samsung-laptop: Fix an unsigned comparison which can never be negative

[ Upstream commit 0284d4d1be753f648f28b77bdfbe6a959212af5c ]

Eliminate the follow smatch warnings:

drivers/platform/x86/samsung-laptop.c:1124 kbd_led_set() warn: unsigned
'value' is never less than zero.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220322061830.105579-1-jiapeng.chong@linux.alibaba.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/samsung-laptop.c