Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp614118iog; Mon, 13 Jun 2022 09:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDOOmxG/XWwBX+GUEqu5IyXELBblFX8KsDaG6TIYef9qEOzhhb8r/j8uSoH4/XqIUm7euA X-Received: by 2002:a63:8143:0:b0:3fc:9add:4b38 with SMTP id t64-20020a638143000000b003fc9add4b38mr320127pgd.352.1655136619225; Mon, 13 Jun 2022 09:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655136619; cv=none; d=google.com; s=arc-20160816; b=YlJ2hblJkEV2jWE57CyIxRLww6g+0wjqzV8CfHmQFpla1mAdon7Ljoa43XFuB9BUxK 4d4Wkrf7lzkR6+bHlA4TWB9vsrCuVzICWEDJdKBe9rw8vmLN8Il5+GwUvoxz1lHnEZXq a2KZ+j/BFddY2wcS+LtdItZQ7ZZPljSQR/kGIzHl4ey5oKLYq/vonRBCjrvcAFur0JNC 5WwXgJF8hmGzJ97sHTOjHSQgedZ7l7kZf94yUBeK8xC/d/LWygonxFthvsRV5NQIOMZF nThvgHmxJgbUP0a4hvk5OQWhF5phxkgvT01MZk7NfFq2vy8mlj7mglen59wERRlwF1FY e9tA== 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=akOgBRBZk0lBxKS6Qwd4DGOvb5qzU5CSy12ofAkRMYw=; b=UjpqHOiT0Hn0htkWE4PB1IWmb62EglfRKA+a9gTfNtCMwEXrMG5IEnYfP9mm8RbL3J a2+HkK8lhv9y0jnVDOgdewBAWqqi7Db7ZoTr7NiBYuukDv+m0pGdXp0u13NPKCW2X9T/ AYBu+Xx1UCkqkyXTbEwDSt6IxvDcQYRzd1C9rkX8LHyOmWpRKwBUwrJ84oYn8/z/lBQn ajUibSqMK1kBvcbBxEe7tW/IN6qtPzuDvJaxkDI5P/dQOpklcQ1JjgtZH1s2/yvE5Qm+ dL6fgTd/ikYRF9HmFC99lft+drl0LBU15eOJHw/bgh4wH+h3UEqwFfC7hc+Mxaiq8S9X 15oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N+c5qrlU; 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 p10-20020a17090a428a00b001e88d83b58esi12904909pjg.111.2022.06.13.09.10.05; Mon, 13 Jun 2022 09:10:19 -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=N+c5qrlU; 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 S1355210AbiFMLl4 (ORCPT + 99 others); Mon, 13 Jun 2022 07:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355134AbiFMLel (ORCPT ); Mon, 13 Jun 2022 07:34:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24BC5434A3; Mon, 13 Jun 2022 03:47:47 -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 3875DB80E8D; Mon, 13 Jun 2022 10:47:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F200C34114; Mon, 13 Jun 2022 10:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117265; bh=gEvp05trtCahzfWE7DwLeU08NiFJsEmHDyAXVpflLBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N+c5qrlU/3QJZlzwhQezD+CIuL+MBXdF3DQM1HHfMNFT3p0x3TG8dIIhpy8c+BEkY DlpEvf+EbKJQM1w0KSAQ+88rczYSupLEQlF0UtbTGuv8nAbECiwmrv7YUjnOpma5QE nY1AdcBKyFnEFSy3jnP5tvJKMb5G10vySp6q8b0w= 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 4.19 011/287] b43legacy: Fix assigning negative value to unsigned variable Date: Mon, 13 Jun 2022 12:07:15 +0200 Message-Id: <20220613094924.194039359@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094923.832156175@linuxfoundation.org> References: <20220613094923.832156175@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 995c7d0c212a..11ee5ee48976 100644 --- a/drivers/net/wireless/broadcom/b43legacy/phy.c +++ b/drivers/net/wireless/broadcom/b43legacy/phy.c @@ -1148,7 +1148,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