From nobody Sun Nov 24 02:57:17 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=treblig.org ARC-Seal: i=1; a=rsa-sha256; t=1726701350; cv=none; d=zohomail.com; s=zohoarc; b=A7AZjuyt1IO8imqV5vNrb5CzaaRB5dmbbu3sostcjZdSa/gnBtQkIXPc69CAIDuSFl9AStA6iu1fl604Hr3RT+HX/+6uxGQOqW3PF3P0rlBKqgM0rk74CD1eP8fFnpBdxMXfeV9j29+sy6jjZVG2OL5Ea/hIBfxbEWgsXQhHvLE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726701350; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=8KCKR8Z4fyMwdHYhXIg5dBaJGxaQw6CWDC5hIfzpuJ8=; b=Ur/lt2t9e/TzPJjb8jPe3pq7YD2KZJIAraA10hkJ25bP/fbLkDC6xIM82//sQOEqCQgJc+HE4ZYOgD2m+H80kGP5R1LJF4VNNJD4vFcz/5wlWU/qs6DVhFI9Rf/QJ/+ARXyE6BvIL698DWzC9QWvr5ErehWp/It46Ox2Cj4tcI0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1726701350249562.8525146651368; Wed, 18 Sep 2024 16:15:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr3su-000775-HW; Wed, 18 Sep 2024 19:14:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr3st-00076P-3K for qemu-devel@nongnu.org; Wed, 18 Sep 2024 19:14:55 -0400 Received: from mx.treblig.org ([2a00:1098:5b::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sr3sr-0005z7-Cz for qemu-devel@nongnu.org; Wed, 18 Sep 2024 19:14:54 -0400 Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sr3sm-006Lww-26; Wed, 18 Sep 2024 23:14:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=8KCKR8Z4fyMwdHYhXIg5dBaJGxaQw6CWDC5hIfzpuJ8=; b=io8+f1JDxjju290/ ZcZEUg5i7dSfh6t9Rz6325VtS3sYomErzytiC+dsNjSRiMjBLQM9re7zknj50KUlf+xiIDk9qccJl JR703kxCmOkVpYci47V/FhsAF+bSPHZK5LRdBdxrYlNkh1gxuG5i669uBWWqtOZxc/ltSGe+bL6Vh gTndMB+2s42RCSEgjrqS1G/5mhukBX3pzUdzXqscFSl2cueBNS6OpLvS+WcBNedL5sLjKCRV3D7g+ iXvkc+cDRJT1FhJP9AfvZwz3SAB/A3zK+l6b7Pe1ulALey6NRCySKV3uFBO5WviASfEwMF+hOaFLj 9YOI+ZKtFT8yztot0A==; From: dave@treblig.org To: jiri@resnulli.us, jasowang@redhat.com, qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" Subject: [PATCH] hw/net/rocker: Remove unused rocker_fp_ports Date: Thu, 19 Sep 2024 00:14:47 +0100 Message-ID: <20240918231447.458796-1-dave@treblig.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1098:5b::1; envelope-from=dave@treblig.org; helo=mx.treblig.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @treblig.org) X-ZM-MESSAGEID: 1726701352857116600 Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" rocker_fp_ports hasn't been used since it was added back in 2015. Remove it. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Thomas Huth --- hw/net/rocker/rocker.c | 5 ----- hw/net/rocker/rocker.h | 1 - 2 files changed, 6 deletions(-) diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index 1ab5852113..5e74acc969 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.c @@ -134,11 +134,6 @@ RockerPortList *qmp_query_rocker_ports(const char *nam= e, Error **errp) return list; } =20 -uint32_t rocker_fp_ports(Rocker *r) -{ - return r->fp_ports; -} - static uint32_t rocker_get_pport_by_tx_ring(Rocker *r, DescRing *ring) { diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index f85354d9d1..6e0962f47a 100644 --- a/hw/net/rocker/rocker.h +++ b/hw/net/rocker/rocker.h @@ -72,7 +72,6 @@ DECLARE_INSTANCE_CHECKER(Rocker, ROCKER, TYPE_ROCKER) =20 Rocker *rocker_find(const char *name); -uint32_t rocker_fp_ports(Rocker *r); int rocker_event_link_changed(Rocker *r, uint32_t pport, bool link_up); int rocker_event_mac_vlan_seen(Rocker *r, uint32_t pport, uint8_t *addr, uint16_t vlan_id); --=20 2.46.0