git: 23d2fcfbb29d - main - subr_bus.c: some style

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 19 Oct 2022 16:39:59 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=23d2fcfbb29dd924f91a039f6d468b430279cfa3

commit 23d2fcfbb29dd924f91a039f6d468b430279cfa3
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-10-07 01:28:48 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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];