Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6131220iog; Thu, 23 Jun 2022 12:01:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uxEQ2vobB5gokI5Nv0Xt6+zn0cE06fQCdn1q7wtsnyCT9nzhDZH47xBPMAMTxTrjGXybOU X-Received: by 2002:a17:906:1084:b0:712:2989:b630 with SMTP id u4-20020a170906108400b007122989b630mr9636011eju.344.1656010871557; Thu, 23 Jun 2022 12:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656010871; cv=none; d=google.com; s=arc-20160816; b=Pu2QrGwuTmFSRLNoeVv04qR0qjku7un8f6zUV5MR8U20/KEmEgO2y7uFvnjucspcA3 YAvD+ZaLo51+jg9bJGAhkDad72pCMFcwD7ltK6GiyI/Ry1AVdZc1lUaDaM7ye5p9zXub InWaRC7ca976BG/Akk4+8FHTwN1UbmcEXdtTflhkjntz+uSwZ28ra1NPBP4Q2EubplRU c1vGvkNSgEa0mGFDkf6zHsycU6/P/37EMwy3TZ9R4qIPkX5b+iHhSiBOfDC7Yd7LEhPY UtkdIZAfnOqtFt7qIPA41uCus3iEt5QcH7W8/i7TmRZAc/qALBFCT6ms9amao5eVyJAL ASRA== 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=FGOFI3e3fqT06FBjCEWpJogSsmeF7QFWIOmdbWXeEwI=; b=OT39DUiRBAmvOiigZENP7TRExere0TrjLcmSDLccQYEG5pffsL1qTBcJsD1pF7M2ez odYvFo/q5SEYU48SoZerM4LYKaCpf7tTtZzFHcRuTd643/CQ23KXRvCkiZs8LAYz6Qqa 3xkpIfiqbdrZLzJFDnCV+CcwrlQyiP3UdvX0gOvi5H8Qycd2L10n4ac/OI8iOMh4LEik dh0H+OHZKpsDKs6tHN2EGVm4S4sLNGLrIn0XQLi8xyJQ0GTmg1DmHgZ3K9PZSvUNuBMu +LQBFQoluL9djns79tAGLFPwDxi01tbf74lY0cf/CVuZLkfYtP01LgvZGgB+RvpxHEm9 4USg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cUYJKiyp; 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 e16-20020a17090658d000b00722df7631c5si175575ejs.749.2022.06.23.12.00.46; Thu, 23 Jun 2022 12:01:11 -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=cUYJKiyp; 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 S236964AbiFWSYG (ORCPT + 99 others); Thu, 23 Jun 2022 14:24:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237535AbiFWSWu (ORCPT ); Thu, 23 Jun 2022 14:22:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE736C22AB; Thu, 23 Jun 2022 10:25:32 -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 B4578B824BC; Thu, 23 Jun 2022 17:25:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E749C3411B; Thu, 23 Jun 2022 17:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656005129; bh=3x+JCMeCi8QARQ9Mf6ADOAWXzW1kT+BjrjIMMS63i3k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cUYJKiypfYzweWnaQM3uDx429kmWCynJp9I8xI5ibGGsFkFipL6NG1ImvkJSistrw OOSxhZEDe/xLJ5DF0G0kT5X+qGCVu92yzXNirW5yMiKaPF/Z4HIiMkdRa0RChQ6aws qzVayTrUaAioUUo38QhPjIaO73vboB7wOa6CbXkY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kalle Valo , Jakub Kicinski , Sudip Mukherjee Subject: [PATCH 5.18 03/11] wifi: rtlwifi: remove always-true condition pointed out by GCC 12 Date: Thu, 23 Jun 2022 18:45:15 +0200 Message-Id: <20220623164322.416091456@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164322.315085512@linuxfoundation.org> References: <20220623164322.315085512@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=-7.7 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: Jakub Kicinski commit ee3db469dd317e82f57b13aa3bc61be5cb60c2b4 upstream. The .value is a two-dim array, not a pointer. struct iqk_matrix_regs { bool iqk_done; long value[1][IQK_MATRIX_REG_NUM]; }; Acked-by: Kalle Valo Signed-off-by: Jakub Kicinski Cc: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c @@ -2386,10 +2386,7 @@ void rtl92d_phy_reload_iqk_setting(struc rtl_dbg(rtlpriv, COMP_SCAN, DBG_LOUD, "Just Read IQK Matrix reg for channel:%d....\n", channel); - if ((rtlphy->iqk_matrix[indexforchannel]. - value[0] != NULL) - /*&&(regea4 != 0) */) - _rtl92d_phy_patha_fill_iqk_matrix(hw, true, + _rtl92d_phy_patha_fill_iqk_matrix(hw, true, rtlphy->iqk_matrix[ indexforchannel].value, 0, (rtlphy->iqk_matrix[