From nobody Sun Sep 22 09:36:54 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 4XBLcQ2cRMz5Wf9y; Sun, 22 Sep 2024 09:36:54 +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 4XBLcQ1mVwz4TBL; Sun, 22 Sep 2024 09:36:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726997814; 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=mT7EEjtaRcApYjciaGcS1glhWcSBqCq6aAErNRv+rLY=; b=slyupDvR3qxKpoXePRZprqwu1bEaINS/wmkioFqk53qWGapJPv3zDniScVtu2i/MYsGyeb /mk5BgLoDYp/dhkN9BYBPUhDctfeoe8BuJdF18vPMf7PMA6//aUG8rfONkdfxBv1jz+cmb KrvF822U7UEQBccBd36RuDS1sLMB63TmPPgXCzEkDVW9r+Z8vRxlnMSXawcfT2DAd6umqh Wn9rsiLDszYBjILI+TX9tYc9iC0X9XK1Sb5v83zo/iqk8+YbEFHmdg4UTRwsQKGJ7/BP9Z ZhnZwv6CmDX+jNyIjzdJkkev8dEP4eXQMu9bhpe505kaW8rqgSIHaQSDS9LPYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726997814; a=rsa-sha256; cv=none; b=RB6x2zdu0lKsPPtam7bLM05DPejbdm8VCEy+cjox7Mn3iFOn53f9UtylZj5KTYTV9hGYrx 2gMBPMLj5Pgro9V8QL4ysu3thYTQYGVPv58jxklTCi6dzPR8vWPgztNJvYo/mL9ejuFBWY jNUSp5YUJX5I4fSVbLDNvmJO3qq5T3mveU6KJoLLn8WCc4xvvx/z4Sbx/ZV3KwY+QhVaC9 MfuhtiuSVyJQrs+yfJMgMIt93dgqXCARfr7JtzkCmjuwwhGV2z6XpILNCqVVorjH3KTEYb lJ6OtMyABHfUd6kQ66pY1jBW9P4ZxS6dWjNwvZqjXo/hBmQKsJmWrX8YE5EU3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726997814; 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=mT7EEjtaRcApYjciaGcS1glhWcSBqCq6aAErNRv+rLY=; b=qtrjya/zHuwYFa8/JZkoa3RmIn1NRG3mt2wsBMJauzIjPgFP0OelwqCPXMZ1mDd+elVJ+x l0iJzjLS/PSGZAyPaJthz1QD/E5rqHXzH0UHcLhYJJGPfkdLICRWYIRhAXGbtlG6UVE9IN udqNlh/kWTK43rAnQ8OCimEaxU/EjsYgcI4keBoD5snzXicZKtKD3OnR6Ttr2oXTYZ26+L qWPDeZh4WIHwrgGeZenfxHZ5zEYsaq0r+qJn+Mb4HhHKvWINYadFfupDywcwsGpx1Qe9X1 VxC0s8DR00nnetq/gLueHJKAfkUdIW1gdjGaA6d9VoQNIadY7ORp6sNBm8ssRg== 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 4XBLcQ1P6Xz19xN; Sun, 22 Sep 2024 09:36:54 +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 48M9ashk000930; Sun, 22 Sep 2024 09:36:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48M9as5D000927; Sun, 22 Sep 2024 09:36:54 GMT (envelope-from git) Date: Sun, 22 Sep 2024 09:36:54 GMT Message-Id: <202409220936.48M9as5D000927@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 81f829b3010d - stable/14 - amd64 sysarch(2): 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: 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 81f829b3010d6b294b229eee5148cd942dd78914 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=81f829b3010d6b294b229eee5148cd942dd78914 commit 81f829b3010d6b294b229eee5148cd942dd78914 Author: Konstantin Belousov AuthorDate: 2024-09-16 19:54:03 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-22 09:25:15 +0000 amd64 sysarch(2): style (cherry picked from commit 29a0a720c33fc70601ea85f813d982a99c3e7896) --- sys/amd64/amd64/sys_machdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c index 6c8b038bdb09..aae3743f0e91 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -286,7 +286,7 @@ sysarch(struct thread *td, struct sysarch_args *uap) break; case I386_SET_FSBASE: error = copyin(uap->parms, &i386base, sizeof(i386base)); - if (!error) { + if (error == 0) { set_pcb_flags(pcb, PCB_FULL_IRET); pcb->pcb_fsbase = i386base; td->td_frame->tf_fs = _ufssel; @@ -300,7 +300,7 @@ sysarch(struct thread *td, struct sysarch_args *uap) break; case I386_SET_GSBASE: error = copyin(uap->parms, &i386base, sizeof(i386base)); - if (!error) { + if (error == 0) { set_pcb_flags(pcb, PCB_FULL_IRET); pcb->pcb_gsbase = i386base; td->td_frame->tf_gs = _ugssel; @@ -315,7 +315,7 @@ sysarch(struct thread *td, struct sysarch_args *uap) case AMD64_SET_FSBASE: error = copyin(uap->parms, &a64base, sizeof(a64base)); - if (!error) { + if (error == 0) { if (a64base < VM_MAXUSER_ADDRESS) { set_pcb_flags(pcb, PCB_FULL_IRET); pcb->pcb_fsbase = a64base; @@ -333,7 +333,7 @@ sysarch(struct thread *td, struct sysarch_args *uap) case AMD64_SET_GSBASE: error = copyin(uap->parms, &a64base, sizeof(a64base)); - if (!error) { + if (error == 0) { if (a64base < VM_MAXUSER_ADDRESS) { set_pcb_flags(pcb, PCB_FULL_IRET); pcb->pcb_gsbase = a64base;