Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp439620iog; Mon, 13 Jun 2022 06:03:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydLTJa2OmRueDmNFo8a4gfbX86jyXlfDxtwbZjBBiFXuYuZGkBNidIWl+DjxEaq2FhqNsm X-Received: by 2002:a17:906:3f4f:b0:715:85b4:54be with SMTP id f15-20020a1709063f4f00b0071585b454bemr6691341ejj.368.1655125414180; Mon, 13 Jun 2022 06:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125414; cv=none; d=google.com; s=arc-20160816; b=fZCPd7njbORNdwesQywdaN+5OmgV8DtZb04pWEJMNZQjVsGUun6PxEtfVdVtsIaBDe w1jd2NRoK9dtjVEsOm3SY160kpWGJkJ794pKOGa0S5F4+XdeYEli4mZM+7nhngzc853Z w0rVxGlD+sOnjQeoHdrziwVVY6togdHMSR+PBivk+vOHSedxlXzDwKtxRNgYoKprQDnd pbAwk1s+Ank1T4oRzEY0jENP5J3frUE/dfM8WZy1QhtFZ9VOkiilJoiVDIk9DsXE9zHv AU49tbXjxUWmQSN4NDJC0/h54u6prN/pnzOoaY2+L+ObsfIeO/F7zAtBuhKwO6ef9iJr Ccew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+UCH8R5Uw/8KOKKVpdlBvF3T0zB9AR4B5lmhq4L+U1k=; b=gjXrb+ACAV069QvdJSLLlRHj2jElqYk3/2BKbTLBcRbvi/3/45Ui25qfWnSyxKZ3oa DbHb3epT71uKDfp7CqCC/2TkV4xocBDEURuEM/KSlbwuesI67RzZlo0jTxgQjXRuM/dy XHZU/3tiRR1p+b4CRaYfmINcP02uUwQJDWGffmF74E4Af5oosQVEJMVdhigpkLQQdE8A nHgFSjpA9L4WGwnp0kasJNSadVNvdINz5LAVUGbAZRkH6YXgD+y6XFOaRG2/rl6+233r 59jOd5/jYiVJD5cTV5RPv0B1jSKLhaOsuRRkMEUZJDJ/lDWO4j5PofLEC2nzDuAeFrGq 81mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PLkhwb/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a05640250c700b0042ac1cffe67si8714876edb.413.2022.06.13.06.03.06; Mon, 13 Jun 2022 06:03:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PLkhwb/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346763AbiFMKzn (ORCPT + 99 others); Mon, 13 Jun 2022 06:55:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347764AbiFMKwd (ORCPT ); Mon, 13 Jun 2022 06:52:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767102EA0A; Mon, 13 Jun 2022 03:27:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A005960ED7; Mon, 13 Jun 2022 10:27:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1150C34114; Mon, 13 Jun 2022 10:27:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116056; bh=hnA5EyoeITBvXjoxz8y+FqzUH8+90/suivYDlXICjYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PLkhwb/ai12OhRXKKtPVOmpKhaGFnr1BkvW7lqSA4jLDvay1cgGHOW2LtNrfs4ygm /ydZ7JxaM0rsVbFTAlnahPCsk2JnXVKvmxnkY3EdCwQ/Ozpsr7r9KnLHS2fGgPZ7Rr +NbWxHpvqp2YF/4kxrDqUd0C1DmB1qSvtErqdrAk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haowen Bai , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 014/411] b43legacy: Fix assigning negative value to unsigned variable Date: Mon, 13 Jun 2022 12:04:47 +0200 Message-Id: <20220613094928.927416702@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haowen Bai [ Upstream commit 3f6b867559b3d43a7ce1b4799b755e812fc0d503 ] fix warning reported by smatch: drivers/net/wireless/broadcom/b43legacy/phy.c:1181 b43legacy_phy_lo_b_measure() warn: assigning (-772) to unsigned variable 'fval' Signed-off-by: Haowen Bai Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/1648203433-8736-1-git-send-email-baihaowen@meizu.com Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/b43legacy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43legacy/phy.c b/drivers/net/wireless/broadcom/b43legacy/phy.c index a659259bc51a..6e76055e136d 100644 --- a/drivers/net/wireless/broadcom/b43legacy/phy.c +++ b/drivers/net/wireless/broadcom/b43legacy/phy.c @@ -1123,7 +1123,7 @@ void b43legacy_phy_lo_b_measure(struct b43legacy_wldev *dev) struct b43legacy_phy *phy = &dev->phy; u16 regstack[12] = { 0 }; u16 mls; - u16 fval; + s16 fval; int i; int j; -- 2.35.1