From nobody Wed Oct 19 16:39:59 2022 X-Original-To: dev-commits-src-all@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 4MsxKX1RRcz4gN9K; Wed, 19 Oct 2022 16:40:00 +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 4MsxKX0v7nz3cPL; Wed, 19 Oct 2022 16:40:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666197600; 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=In87bj6vY/Fx1F+J04aK4rh3S7NMg0xeoDeDA03dCfk=; b=chY0PYZ4sFpNJA9XJsz9YrIA4YxAhWuogEyWfMcW1pIJEK+5OuoycQSYACjoUBFch1hKnC hk2tPipAlKQ3DcJsLGOr43OwEFm4eGWK4xoBR5fvy2W67vrWtLk4kVfN+9OAta3AgSYbgO RjyCcagbTvBol7GHyt2Ph8QMf7E4byu4R89L2sE5HEb3X5RNINyROxDKI24MD8NQaOwiDk rmLFQz32UkigqbUuHy2ZMvDFR2T/MSmQW22yGm0pAdqRFvm0PmS4uTe2oT7DwZLNX6FH5q IpyXpVs6Y4jHaxW+gs2Qf/sPu720pWG+x80xjQK95OBQVc/+kLUqbZ91edsBYg== 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 4MsxKW71vjzb4M; Wed, 19 Oct 2022 16:39:59 +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 29JGdx2x012212; Wed, 19 Oct 2022 16:39:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29JGdxJW012211; Wed, 19 Oct 2022 16:39:59 GMT (envelope-from git) Date: Wed, 19 Oct 2022 16:39:59 GMT Message-Id: <202210191639.29JGdxJW012211@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 23d2fcfbb29d - main - subr_bus.c: some style List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 23d2fcfbb29dd924f91a039f6d468b430279cfa3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666197600; 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=In87bj6vY/Fx1F+J04aK4rh3S7NMg0xeoDeDA03dCfk=; b=be5/EZo+Mlh1KEQcq3+QfTfI2oLlOtVMgt86RWNCZI0VMaw5245LH6sHWVOJrYN8fHBU8E 1e95nk+FI1VZ3BOAQ+JpxdzaDaM33Lx30Cn+ep8ByNuFKAED51MluL7GtlotPdURE23+ru O5J0f/J0m8a6Oin6fIpaF9b38BHwbgZLbq2etBbcDwtdNUV4UcjijXCd9zuJafa06zCoNh SROKDE4fRbrNiGyXZh35hFj+TXSinokFF1U3zAJ12gnegLwSUDjrQwqx55QCBlN3p0VwqE 8aIKt2H02FOi6kYf+y45Q75vGxleQBkgTvMkr3+xexnPpRH3GV/bJ7A39VxjdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666197600; a=rsa-sha256; cv=none; b=uwznWZ18ZVHKBZIUyjWtSxfGFK/v9hU9/CR2JJcXQyYQ5aiprk9Pr0jTb6/dHubNaTQJUZ Hh7cQAxvb+RSAu8QF870XWAk81L3twqfZlE/kZgPn/uTrerBwhr0OtudjeYswLz52Ut/1c IWEdp6gIld6PXP9GF0SRvvrL+q2zZsKoqhbNCRVJbVMf1M6LApgwgEXenwTIVnpA9/kPCK BWGRFSuAtnSg5f6JEMmos8V12n3RHUEqKHHLCI2DYJPfpwcIHvvT2c4onLi4sLoQfzElyn JD0ZRcqSGEq6AASX1oRQxC4T1NOBjzcPcIoqfffv8Lyg45eyvvvQcaZDUjGyQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=23d2fcfbb29dd924f91a039f6d468b430279cfa3 commit 23d2fcfbb29dd924f91a039f6d468b430279cfa3 Author: Konstantin Belousov AuthorDate: 2022-10-07 01:28:48 +0000 Commit: Konstantin Belousov CommitDate: 2022-10-19 16:39:17 +0000 subr_bus.c: some style Wrap long lines in devctl2_ioctl DEV_GET_PATH and dev_wired_cache_match() Reviewed by: jhb, takawata Discussed with: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36899 --- sys/kern/subr_bus.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 2365d83ef91e..3ba68ba78781 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -5591,8 +5591,9 @@ devctl2_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, char *path; ssize_t len; - error = copyinstr(req->dr_buffer.buffer, locator, sizeof(locator), NULL); - if (error) + error = copyinstr(req->dr_buffer.buffer, locator, + sizeof(locator), NULL); + if (error != 0) break; path = device_get_path(dev, locator); if (path == NULL) { @@ -5698,7 +5699,8 @@ dev_wired_cache_add(device_location_cache_t *dcp, const char *locator, const cha } bool -dev_wired_cache_match(device_location_cache_t *dcp, device_t dev, const char *at) +dev_wired_cache_match(device_location_cache_t *dcp, device_t dev, + const char *at) { const char *cp, *path; char locator[32];