Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp223881iob; Wed, 18 May 2022 00:19:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRvUtQNm4CJ/9qFbTiDyFPYlXtfC9mk99QXnQr0m+J44IvgkaJLQPIUdW/3qi5/s6njOte X-Received: by 2002:a17:90b:4a08:b0:1dc:6cc1:3d24 with SMTP id kk8-20020a17090b4a0800b001dc6cc13d24mr29288358pjb.131.1652858395606; Wed, 18 May 2022 00:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652858395; cv=none; d=google.com; s=arc-20160816; b=JHqAdZpLKiuZof/6DDDBsdmdzenwRvRBSZJgFBvUXRIJypIWkc5bc0CX5217JY9iQ0 Nyfd2o/NhquzKPfz89y8y60XyGAAafaKBYC4s3uGVTniA5euSc2s9w/0E4X/AL6ilY+N pD6iW0XqV5U3E+UWyEiFksBQdOT42uKLUJKpSb5uGMDwopvM7217ADLbO0IwOwks2QFD Pb0/j3WP+wHdmMQah6EUVqymdLbmYpOkYE8PBFzaTKtCPfE3xww8u0MYR6uEFzkoN9om 413vpH9tFp9copRq5fyaftPMaHkWFHZ4Jeve9Xxmz8tHq1ljnUXSa4/u4y8Q7vh8fV0j WLeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature:dkim-signature; bh=a12qY+sPuxs2cWzp1uE0NRguEiWR66+TeprLZ3z/42M=; b=BMB3JCd+PJF4b/5uwcydCe01nOIkSib1NLRcDAj3v64JVJeveF/CFt8ewW5a56TfOi itErYZTGYy1UpHwDSn9dX2pNUsjfUWR9M8NWapKiDLAFekVHkYR1a/mdSvpif/JR98zd nvn4D6FI/dKJQ+19qr3PyDqA+WzXcftvqev4MrrHNyHtUzrDUoe/GApZEXhM6vGU75d9 NFHTkYdXtctSH5ahJZTPoQCp0OLTT4vsvdVls0BeEDLtrHP6yHPxFT9TVz2uh1Y4U0mw 3wzM7kfz/LMZxP1Os8BIDSLlZ1AWDzmdkwsk1zP/urvhRfg74PHZvYI1faM+TOXhGIPQ iVSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=y5CkAmqE; dkim=neutral (no key) header.i=@suse.cz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j1-20020a17090a840100b001df7c2c5f37si5564490pjn.82.2022.05.18.00.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 00:19:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=y5CkAmqE; dkim=neutral (no key) header.i=@suse.cz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 835621116E7; Wed, 18 May 2022 00:19:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbiERHS6 (ORCPT + 99 others); Wed, 18 May 2022 03:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbiERHS5 (ORCPT ); Wed, 18 May 2022 03:18:57 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04F24ED7AA; Wed, 18 May 2022 00:18:55 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8CC0621B07; Wed, 18 May 2022 07:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1652858334; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a12qY+sPuxs2cWzp1uE0NRguEiWR66+TeprLZ3z/42M=; b=y5CkAmqEURf6tbAXLxZImR9md35Mqe2TrmGYTWbzWpXOSSE1zJFdJYGfzFAydhjYEvABl8 Fwf7no+A0zLDdX6gdf4kqG4CRYR8j9mMMGSA6aebGp9UhU6C7Rear/1CCeGDX2Kdaprrdv uomZz+hEh0usMCSNnnQedbqwvhmJoG8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1652858334; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a12qY+sPuxs2cWzp1uE0NRguEiWR66+TeprLZ3z/42M=; b=+hBZirRiOLIhDfieYUv9yDrFJQ3+SyFh1pSv8IPBNhHByP5VVxm8siMkF41FCjMwK5h4Ly HenVKb1LduOtMlDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4B8DC133F5; Wed, 18 May 2022 07:18:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oPTCD96dhGJdSgAAMHmgww (envelope-from ); Wed, 18 May 2022 07:18:54 +0000 Message-ID: Date: Wed, 18 May 2022 09:18:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH v2] eth: sun: cassini: remove dead code To: kuba@kernel.org Cc: davem@davemloft.net, edumazet@google.com, linux-kernel@vger.kernel.org, mliska@suse.cz, netdev@vger.kernel.org, pabeni@redhat.com References: <20220517185035.4ee3dd8e@kernel.org> Content-Language: en-US In-Reply-To: <20220517185035.4ee3dd8e@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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=no 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 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 --- drivers/net/ethernet/sun/cassini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c index b04a6a7bf566..435dc00d04e5 100644 --- 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 *cp) 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, int blkflag) /* 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); -- 2.36.1