From nobody Thu May 05 23:42:23 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 B27551AC1361; Thu, 5 May 2022 23:42:23 +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 4KvVbz4NdTz4XgX; Thu, 5 May 2022 23:42:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651794143; 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=b6Pxlvou6b47C7Zat7lHDHgzUyQM1d+N0SpzhnoWQFU=; b=iD41va/IEWCArh0lZKB89+AUUYjKR3wDBmp5jVSHG0U5uYzFqiD+4P8A83SSltBGdrcjMF /PzPsl7hLtiec5OraPm+IP/pFuyW+GKqexpvSKMItvdBH7ypnCdMpsoqz8a54aISmObQTl jicGhSj/6MaVOmwYpjXhoRCSHiiBkkNlRoDcfZxkcep1oAEF7ugbbHZUGbAvuhskM+W05Q /oKznBjfcrQwLvNSVHmpLb1lOHB4q2DKghuop7YvHh4JwD4Yc4jZV5FupR2OdyKikyzGbd uWgRfHRqBeGaU7BdBamubMGjbYPVLO2ozSq572H/zbMKaQZoh2WKmGIo8oGKbg== 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 727A611583; Thu, 5 May 2022 23:42:23 +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 245NgN3w055551; Thu, 5 May 2022 23:42:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 245NgNgS055550; Thu, 5 May 2022 23:42:23 GMT (envelope-from git) Date: Thu, 5 May 2022 23:42:23 GMT Message-Id: <202205052342.245NgNgS055550@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: ac56d90a49c5 - main - ipmi: Use devclass_find to lookup ipmi devclass in ipmi_unload. 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: ac56d90a49c500649319b4926f324540a443f383 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651794143; 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=b6Pxlvou6b47C7Zat7lHDHgzUyQM1d+N0SpzhnoWQFU=; b=JwsQ682FWk2IL1PSl7XI2pilBmd4Tl6i0qdZe+6iLFGw1iC+tJmbwCrR6GNsx7BaEjeodg qRBBsceCBLJWVyFLgLOygo0dXWEnVCFGhYBcYC/K/bUetXIBvU2SLR8j6BPA1mNe6xgC5z LDsf47Dm72C2RJ1nRIgWE6KEYWaFfbkti+RtkvRTjvxghkwvgcgbpADGYLdiN1cRaifN58 OSeXFRmykxZEL7ElsM0htue+4o8PUm8WWfo2evQesQlfDBmdxvr+k6gCaOVQY95sBK7Rbf DdSdQdQJ/IL8NWpnIlLqGs9nM85+lgn/nO5pOHMJUpJTXqYTuML9JhFafg6ozQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651794143; a=rsa-sha256; cv=none; b=Yyr8LJ95rOrl762FewfGM/THKkCQFPuEQIlZ5LUeGjNoF+zcBUvEfzp/5vnyaJL34qyHH2 Fwtuq5c+8YVwMROpKGzGftVK5xA7Nk8sY5HvBPgamlb++EJ+3sDiyn3VtukFaYFY6PlkdF zgXtBqo5of4bMrMDOLTgwHdBGOb2KlIxYsRnUOQfBjX5O58X5lC7RZmDkaKZdY6jVHvDLI H4Y3wXrNisxbFxL374xN2MxBnOzPIl3mVNvc3Xwl2bsLAbwSPGDYfiYuYUkvB0BCyLfidU TWbybITj+V2h+HYuVfehQxy2NkX4OPtfB8ehkMkmwF+jMwIpI/bvKARYUZTr7w== 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=ac56d90a49c500649319b4926f324540a443f383 commit ac56d90a49c500649319b4926f324540a443f383 Author: John Baldwin AuthorDate: 2022-05-05 23:34:33 +0000 Commit: John Baldwin CommitDate: 2022-05-05 23:34:33 +0000 ipmi: Use devclass_find to lookup ipmi devclass in ipmi_unload. Differential Revision: https://reviews.freebsd.org/D35061 --- sys/dev/ipmi/ipmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/ipmi/ipmi.c b/sys/dev/ipmi/ipmi.c index 3a9fb80fc208..3427c36ba615 100644 --- a/sys/dev/ipmi/ipmi.c +++ b/sys/dev/ipmi/ipmi.c @@ -1070,9 +1070,7 @@ ipmi_unload(void *arg) int count; int i; - if (ipmi_devclass == NULL) - return; - if (devclass_get_devices(ipmi_devclass, &devs, &count) != 0) + if (devclass_get_devices(devclass_find("ipmi"), &devs, &count) != 0) return; for (i = 0; i < count; i++) device_delete_child(device_get_parent(devs[i]), devs[i]);