Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6129857iog; Thu, 23 Jun 2022 11:59:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u4AJP7Oqj2YtchCh5mTOnn5qCKvAQ4anKmYhaWUtX7NqZvTq2v+v4bYMbZskT9pyGhE79W X-Received: by 2002:a05:6402:88a:b0:435:5a07:97f4 with SMTP id e10-20020a056402088a00b004355a0797f4mr12777272edy.244.1656010776752; Thu, 23 Jun 2022 11:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656010776; cv=none; d=google.com; s=arc-20160816; b=qK1iirLnvO9oGX2OxKTVqPFehGr3rkNRiuNY7hw2vvqMlA74PMceLnrHsdNp95Dmm5 9EqsRU279b6AgudsFotRKaotI2ky4kt5+SnuxEjavxKdiDHcPdJnUvhwt7lIs+T2kkPu rm2uZcjQsdb5A4idItaopgRP3aqWOdkIqkXW7P/qDPW5g86M4nIMkwdtXO/oqdd17Elw EZOkvVL8lxAqILcz5BmYyCBKI5F7bVXS3ubZwND7IyiDA0t/WPVoj9ZhVDuo7bhEITK5 rxR0S33AtHJlhBZD+xtRjkDiJZFhvk8nmgQBjkdx4I14kajZ3KCsJyxCI+obk0I4nIMw YfBQ== 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=tY7T4iQqyRu7WtIAT+nnCKssS1GLLhBNMYW7zrh64S8=; b=PfpegehlEapCDhKOdx1qIT40l/WSOnYSnYdcCpO2AHGTYo9LpRS4LIGpnBx/5yU2eE XSIzvK+hB9drsp+jo4u0SDreIU6SofsJjviFEjfYAGYHM9f6wRNCOSiGoz+fz3jBhpYt 68Sp5Yn1CtlW6IaJGLO4t6YF3DoxGcmMPBLZsGII+ybjtApzmEy422tYd0HDZy+XNBBO y8tJw43MJtUgRfshd5WOW5PikWUVjPfGlaoar0TnwkjYLvIpvocLDqAAFDnqZ9uZFsmg owW1w7jW2Mw5rsCA4UvfWCwu4tL+tflyFgVtZsAvX0UPH7+cZ1Hstv4+DLJ0/ZnnbJzR uUWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aGB3Qvrj; 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 dm19-20020a170907949300b006f4904880fbsi1015543ejc.338.2022.06.23.11.59.11; Thu, 23 Jun 2022 11:59:36 -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=aGB3Qvrj; 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 S237105AbiFWSYY (ORCPT + 99 others); Thu, 23 Jun 2022 14:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237608AbiFWSXC (ORCPT ); Thu, 23 Jun 2022 14:23:02 -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 04FA4C2C41; Thu, 23 Jun 2022 10:25:33 -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 48D3061DC6; Thu, 23 Jun 2022 17:25:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D8AEC3411B; Thu, 23 Jun 2022 17:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656005132; bh=jBL5LPWzIe5LTcpmUu/vq8dj06VeJFEUWnOKZtuluVI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aGB3Qvrj7MLD4qVt6r7yfJ8Vit1uUOiv9hb5TFTrMop9bdnJWbg41f2VDtl9z/z6W 8YsyxONI0wBJiT/nV89dGF/7IjTAmPhbawkmAfDcy1CMifHiqXc8JhBGg4FYe/C61r cse/q33sPiM4nfbul/YvA+y9MjsVDX5gv5hkmLR4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Liska , "David S. Miller" , Sudip Mukherjee Subject: [PATCH 5.18 04/11] eth: sun: cassini: remove dead code Date: Thu, 23 Jun 2022 18:45:16 +0200 Message-Id: <20220623164322.444430614@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: Martin Liška commit 32329216ca1d6ee29c41215f18b3053bb6158541 upstream. Fixes the following GCC warning: drivers/net/ethernet/sun/cassini.c:1316:29: error: comparison between two arrays [-Werror=array-compare] drivers/net/ethernet/sun/cassini.c:3783:34: error: comparison between two arrays [-Werror=array-compare] Note that 2 arrays should be compared by comparing of their addresses: note: use ‘&cas_prog_workaroundtab[0] == &cas_prog_null[0]’ to compare the addresses Signed-off-by: Martin Liska Signed-off-by: David S. Miller Cc: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/sun/cassini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/sun/cassini.c +++ b/drivers/net/ethernet/sun/cassini.c @@ -1313,7 +1313,7 @@ static void cas_init_rx_dma(struct cas * writel(val, cp->regs + REG_RX_PAGE_SIZE); /* enable the header parser if desired */ - if (CAS_HP_FIRMWARE == cas_prog_null) + if (&CAS_HP_FIRMWARE[0] == &cas_prog_null[0]) return; val = CAS_BASE(HP_CFG_NUM_CPU, CAS_NCPUS > 63 ? 0 : CAS_NCPUS); @@ -3780,7 +3780,7 @@ static void cas_reset(struct cas *cp, in /* program header parser */ if ((cp->cas_flags & CAS_FLAG_TARGET_ABORT) || - (CAS_HP_ALT_FIRMWARE == cas_prog_null)) { + (&CAS_HP_ALT_FIRMWARE[0] == &cas_prog_null[0])) { cas_load_firmware(cp, CAS_HP_FIRMWARE); } else { cas_load_firmware(cp, CAS_HP_ALT_FIRMWARE);