Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2192237iof; Tue, 7 Jun 2022 22:44:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPdVLOkuP1YE0UuRiFRWWbPQHdH949VuGGwlvBZ4KoIPf6C2oOOi8TBTUBtj3oGR6HhITm X-Received: by 2002:a17:90b:4f8a:b0:1e8:9018:dec9 with SMTP id qe10-20020a17090b4f8a00b001e89018dec9mr12373708pjb.89.1654667079311; Tue, 07 Jun 2022 22:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667079; cv=none; d=google.com; s=arc-20160816; b=fT28LsB+lVYMRooqyvdZx/2vlcIUN3rX03ELtU+AzKDlQ4Xz3/0jJ5JMmL+SCp0knF lMJWA2YkHhKzeiBs9/eRYQG3XnniiM5NbXpFOJu1goOG64MxLfT9ZAGrASuPuLNC/qG7 AdFVt7M7KEwKlNPO2SO0oLD8tx6iGiWfcK5x/NAw8xBiL16fbjDe6ERkS6mbSZjGKaOJ fRzNPYBdxpPPOp+/RGfbe2seoBxKDa84YPg9iitpcrYEH5IJMtGw+5+QcwWn44aMOySU NFH8lm/jE393duM/KpkDmSZ6Dbns+AmcQsTzJcE4l3jEIFeNhA/MFHGYdaflij0eypRO 8tBQ== 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=WtTyRjcxkJ/6nRiLLn3TqXECMRChQGOkJvQuqiTBo3E=; b=lhdz9gZ96VE8KuWitAsIpksKg2p1DfEu7mUTMWwzjRAS3zOIIoJl+IFH0BkFm45qC7 SXySxtG31X24QnrVzzyHDdUtHVO4fWhkyDCIuM8PxifLoPsArArU34MhSxgBEoKLKBGF Mjxdg2MF3rVNPD42rHwCfeW0jmzHCBuIpUk3hl4Iu47Q5J+XhacTEInFV/GccRieFkML K8nD4T4r9aFylGvNDjB0mxFLB5cIx8P4idaicfNUXSCM5x+c9BzRNa8wjmDI7Z37BDbE pOOUOkkpum87rB+eLCWgyXXMOmab0Gc9x0Z5GiN2AJ4fE3UcOK79qTUe9RH5u82FcMSe QXQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jgwOor5Z; 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 d205-20020a621dd6000000b0051ba522e685si26108595pfd.173.2022.06.07.22.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:44:39 -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=jgwOor5Z; 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 BFE8C1C4B35; Tue, 7 Jun 2022 22:09:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383828AbiFGWGg (ORCPT + 99 others); Tue, 7 Jun 2022 18:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379656AbiFGVGL (ORCPT ); Tue, 7 Jun 2022 17:06:11 -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 8923420EEB9; Tue, 7 Jun 2022 11:50:01 -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 B0D9C6156D; Tue, 7 Jun 2022 18:49:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7EF1C385A5; Tue, 7 Jun 2022 18:49:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627791; bh=NCZ8ENLCATeP2GIJLaAP/xz+MzB5wHdRUTpcdOOL+I4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jgwOor5ZznYmNjZbJHwCJmCMCRx/jCeDvPyR2Z/59Q/6ZClXxdbQ0SjEvh59kCmv2 EEqTE1H9gjEQAn+cDZ1PriBK8RYvfFFOs1iOlEhBsgJovJ/uwkP+XphULku8/9l20h IXDNW3nERfNVGwcPMTgpSK8G4cXW75ByoC2Y39fU= 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 067/879] b43: Fix assigning negative value to unsigned variable Date: Tue, 7 Jun 2022 18:53:05 +0200 Message-Id: <20220607165004.636696475@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 11800d893b38e0e12d636c170c1abc19c43c730c ] fix warning reported by smatch: drivers/net/wireless/broadcom/b43/phy_n.c:585 b43_nphy_adjust_lna_gain_table() warn: assigning (-2) to unsigned variable '*(lna_gain[0])' Signed-off-by: Haowen Bai Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/1648203315-28093-1-git-send-email-baihaowen@meizu.com Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/b43/phy_n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43/phy_n.c b/drivers/net/wireless/broadcom/b43/phy_n.c index cf3ccf4ddfe7..aa5c99465674 100644 --- a/drivers/net/wireless/broadcom/b43/phy_n.c +++ b/drivers/net/wireless/broadcom/b43/phy_n.c @@ -582,7 +582,7 @@ static void b43_nphy_adjust_lna_gain_table(struct b43_wldev *dev) u16 data[4]; s16 gain[2]; u16 minmax[2]; - static const u16 lna_gain[4] = { -2, 10, 19, 25 }; + static const s16 lna_gain[4] = { -2, 10, 19, 25 }; if (nphy->hang_avoid) b43_nphy_stay_in_carrier_search(dev, 1); -- 2.35.1