From nobody Sat Apr 09 00:28:05 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B304B1AACB03; Sat, 9 Apr 2022 00:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZwv962W4z3pSN; Sat, 9 Apr 2022 00:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kf/U1WGQ38hSADyZgKm3bxFWUwuI3aOM410H6+XhyD4=; b=ZBVaHopaYaYlL6UVE1zvb7AOVN7/s1VXIKcZKJfLsNnnSOkqpcNl/Q0mWc5BUh+a2g4kRl 2wkrItC2TF0qgdkMnvmoNu/JDXt0gEmKjPLS1mT4hrrknaabBGm1ZkUK3ZNQA9PrPUzzo0 neTNHVzea59USe2Lu7RChQSukfknEoyjfytup2cmRQA7b3ZsJk6xk26ARXQ+NJES5mucsb qwDilX7lNAl063klwgz06RAe8COeVd9CkCo7fLMeuBiuklA3A5zAAdQ61/8fxN7nI3jK6K uVzIyvsW+msiiTbEOq5c3VuqBzHrR4y82hZj8N+zyFuOnRpQJPG+rChMy3tsEQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A89077903; Sat, 9 Apr 2022 00:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2390S5pD056869; Sat, 9 Apr 2022 00:28:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2390S5l5056868; Sat, 9 Apr 2022 00:28:05 GMT (envelope-from git) Date: Sat, 9 Apr 2022 00:28:05 GMT Message-Id: <202204090028.2390S5l5056868@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 683ca8034d23 - main - etherswitch: Remove unused variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 683ca8034d238ddb01808a5b1f3645daacd3a0b7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kf/U1WGQ38hSADyZgKm3bxFWUwuI3aOM410H6+XhyD4=; b=R4Ed4yyBN+EzqDRAFsfdJIqH9th9JQWLpfYeLa3Rvj/JgJQKQjEsnAhaYNQvaE/QGo9EER 9UoIj7ApNlLLBvMLxDbxgsAeGYKlrEDu/AEdj/o9/cYZ5/W9iYCHYpqs1LJUBqjlnw/FA7 H80xxqOjIk+wFdMQwg+NoWvqaaPX4ck6i27Fuj54s0y4ZrBGwlKuxzKsFJDIyA5epN++aZ NmswhAk7p6FhfH29xAEEG2UJD8IpEQYV8O5kjoTyfgoFh70QpluZfDLw8dQQxTZZLbReoa luF9Sn7lViSWGWequ3H1P9VILbjQCr0X/ONABdxvTMP/97wckHFKY0LgsCY9uA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649464086; a=rsa-sha256; cv=none; b=UrfM18q+6GDX7DLJFnvUGKSjm9P8Zr1EsLKKudY0f385SNiNbg/aGqWmWGqHGv+oKaMhq5 Gl+C24uTtejCvSAwgGtzTepCYYil7JaNsp1zpUzTWiXADvQktrAdxDiAx1n0z91THA01Kc R+GS7JLSWDkfx2Gm7FyX2SbF1LuGxpI6PA+TEgnad3pBWciHWxtMMtZf0ZJqVDiZ20d+yE 8eE+czkDFD+e9ARC7Djg/t0wSKjTuWKI5mUJ0kn/63WYfaCcaaYY+mkBzMhJzFW0RpGLeY ybg0I92JJ6pOnmnvzaDCVEN0nyCQ4rz2oEztlxGBrrSPjfT06aC3kArCtvE/uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=683ca8034d238ddb01808a5b1f3645daacd3a0b7 commit 683ca8034d238ddb01808a5b1f3645daacd3a0b7 Author: John Baldwin AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin 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); } }