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
This commit is contained in:
Konstantin Belousov 2022-10-07 04:28:48 +03:00
parent 38a52bd3b5
commit 23d2fcfbb2

View File

@ -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];