Message ID | 20220426081734.939136412@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34DB9C433F5 for <stable@archiver.kernel.org>; Tue, 26 Apr 2022 08:26:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344820AbiDZI3Y (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 26 Apr 2022 04:29:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344654AbiDZI2W (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 26 Apr 2022 04:28:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857524130A; Tue, 26 Apr 2022 01:24:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 328DDB81CFA; Tue, 26 Apr 2022 08:24:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76F1BC385A0; Tue, 26 Apr 2022 08:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650961446; bh=kKCNAiRVSRYNBM3a+Hb6jDO/M8J2VQLjQI3FjTMlN74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dn3OBoN3K5LEc+saFGAqsou3Muj55GJ3p3XxHOQ4wVlPFvmCqG97fRLhJevn7eUD7 FVp2J1qOIrs1Ijkejwsp6sCzhpmfbDAcr7oGqI9VtKEuh8C+621qsbLl6cngnqC/45 wrpztg8da3b5LBugGybaXElG1l09/tIoEszObjr0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Abaci Robot <abaci@linux.alibaba.com>, Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, Hans de Goede <hdegoede@redhat.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.14 14/43] platform/x86: samsung-laptop: Fix an unsigned comparison which can never be negative Date: Tue, 26 Apr 2022 10:20:56 +0200 Message-Id: <20220426081734.939136412@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220426081734.509314186@linuxfoundation.org> References: <20220426081734.509314186@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c index d3cb26f6df73..c1c34b495519 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -1125,8 +1125,6 @@ static void kbd_led_set(struct led_classdev *led_cdev, if (value > samsung->kbd_led.max_brightness) value = samsung->kbd_led.max_brightness; - else if (value < 0) - value = 0; samsung->kbd_led_wk = value; queue_work(samsung->led_workqueue, &samsung->kbd_led_work);