From nobody Fri Oct 11 21:28:14 2024 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 4XQKVQ4YY0z5ZRVh; Fri, 11 Oct 2024 21:28:14 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XQKVQ2mJ7z4PML; Fri, 11 Oct 2024 21:28:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728682094; 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=M8lQEINtzevj1JGs+LULlHutsdV4YZulOoQpRQUJY1c=; b=lPzfHnd2j4dd76HZoQmPj54gCfWnSFMr+b0w6iQj6XKwEjBtML5T+XZedzIASKdPIuNUA2 OT99C2dfeKD58Vh8VJGy1hc13F7j2k16y5AWvEsqXf5JwtTiWdzJCJmpxBsp7x4vipgpT1 nLK3iAYtRV5mioqOTGG3bE/C67HFb+wFGg42MYM5ciY9mVci3aj4K1zWFUUTVKUiMlD6xw 6VN0Wl0TnGli754pNYLPHEJcLgz+IiFPEOZQqigpUh7InzcvQ/27d2QK+XGWwAdKRPBB15 2Yc5aKFr4rcWNu3uXfDZ/2746BnD0D1MlrBe8yranNkd5GZp7xy69xipdirFIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728682094; 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=M8lQEINtzevj1JGs+LULlHutsdV4YZulOoQpRQUJY1c=; b=a68MSl1UKOCJjoRB53rSfU7gOVAMl5SfA9W4Hs+JlpW3r/06SuG5I0tZeuMR1Cnk8er8TX wbp2lsLsuzm0Tkf0u4qZPW4GrB1v5CUu5FslQVkDgJH4md+QHyr9ipwesDaZVqQosH19Mr D/3FGHo0c2lWaqtWMvHwusvpw0tOf/WSHGTqfObbkToZ3Izh76RE1UwYyPWgp/ZDmZsuYX jspALRZFSai8RMuLFZK7MGMfUZUVi7qM6Ya+Xo5vGU5zC6IcmiZ11mkv5LjY2xSazb2e5L +o16194OazEnVDEJqWbHvy6nOVheSJJisAkDkRtH4y0yQ2gWoOihWB5UhO9aFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728682094; a=rsa-sha256; cv=none; b=bADau50alYHVwG8b3EAXXL8e0E0jOaOQAwM6jKJsRoVFr7gMv5P3KKXS+B+T6jnNm+9uu7 qDibovz9h9vxFRsz1G8hzFo9wdF8yalEQhDB8dohOu69hl6y0ZZPlebRr9Zx3pb31Q1RNw 8q6l85bYzSgZhU+LzQ0/lQZDiMk21GZe8Bs6/TV+t6G15RdP9AmmQh+XPjO0F7m/53Cmaj 0myOCO95+gSdaQmEvOCZ3ceuTy+Lqlz5S3KICrawhYqZKY+UyoUs+Z1jaHbhK6WJcLuLRL gvH3swOj/EmlA0CcxWV7CbYX77QvuRbLrZVfA9KjjuQa3ydAE43PFIWSMzyYLA== 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 4XQKVQ2MlLzxpb; Fri, 11 Oct 2024 21:28:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49BLSE4H050522; Fri, 11 Oct 2024 21:28:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49BLSEnY050519; Fri, 11 Oct 2024 21:28:14 GMT (envelope-from git) Date: Fri, 11 Oct 2024 21:28:14 GMT Message-Id: <202410112128.49BLSEnY050519@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 852233cf7620 - main - uart: Small style tweak 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 852233cf7620fd98eb8b5221e662fc863750e0f7 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=852233cf7620fd98eb8b5221e662fc863750e0f7 commit 852233cf7620fd98eb8b5221e662fc863750e0f7 Author: Warner Losh AuthorDate: 2024-10-11 19:26:19 +0000 Commit: Warner Losh 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,