Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2022 00:28:05 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 683ca8034d23 - main - etherswitch: Remove unused variable.
Message-ID:  <202204090028.2390S5l5056868@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=683ca8034d238ddb01808a5b1f3645daacd3a0b7

commit 683ca8034d238ddb01808a5b1f3645daacd3a0b7
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-09 00:25:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-09 00:25:14 +0000

    etherswitch: Remove unused variable.
---
 sys/dev/etherswitch/miiproxy.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/dev/etherswitch/miiproxy.c b/sys/dev/etherswitch/miiproxy.c
index d667cfec2c3e..54fd9b36f568 100644
--- a/sys/dev/etherswitch/miiproxy.c
+++ b/sys/dev/etherswitch/miiproxy.c
@@ -332,10 +332,8 @@ mdioproxy_rendezvous_callback(enum rendezvous_op op, struct rendezvous_entry *re
 static void
 mdioproxy_identify(driver_t *driver, device_t parent)
 {
-	device_t child;
-
 	if (device_find_child(parent, driver->name, -1) == NULL) {
-		child = BUS_ADD_CHILD(parent, 0, driver->name, -1);
+		BUS_ADD_CHILD(parent, 0, driver->name, -1);
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090028.2390S5l5056868>