Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2147520iof; Tue, 7 Jun 2022 21:20:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8S4Za5pgvWbDLFmaLbaTtGL/RZIWBJ4KoWEfGMnvk6g8tB9mwV1o0Ixys7CJ+lYppupzW X-Received: by 2002:a62:ed0e:0:b0:4fa:11ed:2ad1 with SMTP id u14-20020a62ed0e000000b004fa11ed2ad1mr32946562pfh.34.1654662001870; Tue, 07 Jun 2022 21:20:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662001; cv=none; d=google.com; s=arc-20160816; b=IDycfmSn9X+VtwERNVJeNQCM5vHxZWv0FWUjFgTcdpTUV0+Fc1F5R92vq3lLUXU0ZG UiA488bk2L5BxTdL36XiUn9r64i4iH6s6AhNz2a4/iZxVxc7J4hmHFtZ36haY36soE8b YDL4Nny6XuuAmrxh9wKSFuhYJh4WBgwU5QhK/FCeiuZsP0oJE1KviVo5jrd6LiWaoa5O ommEjuecXsSMF/q/fuZ2Mo+oB+Er9ceC9N3az+MDJ59LD9F0xvfOZ8KnRw648Ekiz2SJ moF52bWUKa3+WTfxj3NSTnwyOx77CL7QDuryxyoCWdckp4ufNuCFj/GnsHy/eAE8G1zC SL8g== 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=Bsa1J922v9pmrNah/iiuADzPcRkDhnkGVLgNnjKrHzg=; b=S27GX/2aDlrtUd+XCapEmWrN8wQJAYppPL4dytdlQXt+Ucw2hPrBsJeINuATivvxEs xIE50CKd+kgyBSJpdhHdfEafRwCQfdL9NIhpaE2RmORsntFqBUSxoTHAIElUqAu2CPaf 7dnyRAkuuJcEYR+Qxxubi/yB3VKTM4G5n7B1qQFRHNpEOIDVWf+0bmSffdWd1nB9Bhku 60cHiI3xE/iq3xAa5cGiywfW4n0Er5NQbWlGIjLkcoUJ5Pi3+hhTWc9LeZK/QXSRvwDp 5IopUuuZQUGt8KJupc2w5EPJ4/4jzRA70uItUt2XJ5riXI5wmTfHS4pAjzUc/+PVnuZ0 906w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HBDS54y+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d13-20020a63734d000000b003c5ea42d972si26481686pgn.168.2022.06.07.21.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:20:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HBDS54y+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3BB293B0924; Tue, 7 Jun 2022 20:51:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383603AbiFGWGA (ORCPT + 99 others); Tue, 7 Jun 2022 18:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379299AbiFGVFv (ORCPT ); Tue, 7 Jun 2022 17:05:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E66418DAEC; Tue, 7 Jun 2022 11:49:21 -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 19185616C3; Tue, 7 Jun 2022 18:49:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F9DCC385A5; Tue, 7 Jun 2022 18:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627760; bh=nQbb+Dvg94Bd3lpBOt9d1emxz4LV6Rz434ipGpczzEo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBDS54y+/P/NdToJ5eWBUAOYp8wDE5yJ05Yw3c0IvsBiGyq8+tJCrV5dS2wv+/Rzr uyWp5ZKyHZi8rjDGdF0bV3mVK6kxZ9ipbY1xqqf0P+1s4OPBUZPpkvzedjtiKYP30e Fz/if3pIF7+OfNHB6Q41H4pVFfuqlYmPG6jDn6uY= 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.18 066/879] b43legacy: Fix assigning negative value to unsigned variable Date: Tue, 7 Jun 2022 18:53:04 +0200 Message-Id: <20220607165004.608582811@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 05404fbd1e70..c1395e622759 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