From nobody Thu Apr 21 17:30:12 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 C86CF19910DC; Thu, 21 Apr 2022 17:30:13 +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 4Kkl111H81z4WkK; Thu, 21 Apr 2022 17:30:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562213; 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=hoEV86UiH9bq4BwpNXm/Mhemz0QuyOru0+J2fwdgmKM=; b=hCJEFOGoS7KzkOsOg6+LmuaT7SeOjx2+mMWPFGryDyq+X4joqf7tOQEcRdiTS13OxVjh69 +yEH1YmN0otDLID+D/ftokAzvX6lX4eNlrWzggKWcGC42aFq3ClfSslXNg5tRm/9gRIjC4 xgQ4pc9mkEftWkewm/LJrnO00bGlNERHRhMWFVOeRCObLNLQjlg0Bif3sM50P88HHwc7dL P8RH1FOnOzKopf2nlBSnHCnaqikse3H875yy5WrElCZq5SWPA4e/msOzwEDHPvCKkcijVs yii61P9VZ3A6nUMP21bicmujhDGDY6Fx1fc83weyI5V+iLbB1e2KPAD0TGs93w== 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 09F2B5196; Thu, 21 Apr 2022 17:30:13 +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 23LHUC5s004144; Thu, 21 Apr 2022 17:30:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHUClL004138; Thu, 21 Apr 2022 17:30:12 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:30:12 GMT Message-Id: <202204211730.23LHUClL004138@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: 907f35efffb0 - main - ccp: Use devclass_find to lookup devclass in db_show_ccp. 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: 907f35efffb096593c508b8fc7a7d8988c8c2499 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562213; 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=hoEV86UiH9bq4BwpNXm/Mhemz0QuyOru0+J2fwdgmKM=; b=C9xt7iDFWQrxLngAN4VxZADC5uM/1C+LCmVWRRKo3844YSVqb1b3wnFbA8QAXw7nekGP54 WHrdvIT5kCDdwhlfxylazkPvXGIL/j1zVTI/0r2hwX1y57mjPHZyhxJG/s5/+hC1DGxttI p4XDNfKaj5+yR6PWdk0dglm+h1LYyZ5EvoyXbCdUl5hPfdteA/UgYJdA83n+WZHQqe2Vzt noV7DUlYe5+8S4fn4hVVgSuqlmDu/ojGd5z6u53fpG6SA/CIqi8oVTaNNBWxMS3Fs0sHcW M9YW60+ukV7YBflhPfEEEUmW7PzkLZnSdwrgzGbAIV7HMh/04ddF7V93lj3bcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562213; a=rsa-sha256; cv=none; b=cnXD2Q6MzYauYDrey+X6I2QbvgmGV21zGr6JmMYY2OZ9TmRYGmt1rXs/jibG8vjZ0Ex086 yvz3PrLL4PjuhQDaLvuHNpAZhN2X77KOUAzBiPNpAVAsWolPBTHvUdbJMz3OwIXPAxBkEY 0hGLHiAIuZd8mVTahHSzfd7lAB1NJS7/3jy67m2b0Xg0PhAM3ZPnbUd/uSRlCxXlbhCS+a lUWFr2WHg3jTbauLZpIqOvuSAOFLPxhB7/lQ7wz0r1b8j8Ghkpd1aYQM8WnIhCWJ5knW9Y aXmX4B5UjJSPOpr8vSxwO//C2/vPQZEa0poSqQ80/5OH3fqzxYrWwkbpxVtwRQ== 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=907f35efffb096593c508b8fc7a7d8988c8c2499 commit 907f35efffb096593c508b8fc7a7d8988c8c2499 Author: John Baldwin AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:14 +0000 ccp: Use devclass_find to lookup devclass in db_show_ccp. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35003 --- sys/crypto/ccp/ccp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/crypto/ccp/ccp.c b/sys/crypto/ccp/ccp.c index 4ceb028b593e..b41b86f111cb 100644 --- a/sys/crypto/ccp/ccp.c +++ b/sys/crypto/ccp/ccp.c @@ -766,7 +766,7 @@ DB_SHOW_COMMAND(ccp, db_show_ccp) unit = (unsigned)addr; - sc = devclass_get_softc(ccp_devclass, unit); + sc = devclass_get_softc(devclass_find("ccp"), unit); if (sc == NULL) { db_printf("No such device ccp%u\n", unit); goto usage;