Date: Fri, 11 Oct 2024 21:28:14 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 852233cf7620 - main - uart: Small style tweak Message-ID: <202410112128.49BLSEnY050519@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=852233cf7620fd98eb8b5221e662fc863750e0f7 commit 852233cf7620fd98eb8b5221e662fc863750e0f7 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-10-11 19:26:19 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-10-11 21:27:46 +0000 uart: Small style tweak Use if (err == 0) rather than if (!err) to follow stlye(9) and also the rest of the file. Sponsored by: Netflix --- sys/dev/uart/uart_cpu_fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/uart/uart_cpu_fdt.c b/sys/dev/uart/uart_cpu_fdt.c index 1cc1c795f29f..fd1647cd78aa 100644 --- a/sys/dev/uart/uart_cpu_fdt.c +++ b/sys/dev/uart/uart_cpu_fdt.c @@ -81,7 +81,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) /* Allow overriding the FDT using the environment. */ class = &uart_ns8250_class; err = uart_getenv(devtype, di, class); - if (!err) + if (err == 0) return (0); err = uart_cpu_fdt_probe(&class, &bst, &bsh, &br, &rclk,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410112128.49BLSEnY050519>