From nobody Mon Sep 16 23:02:35 2024 X-Original-To: dev-commits-src-main@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 4X70mr55Nrz5WLN4; Mon, 16 Sep 2024 23:02:36 +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 4X70mr1VL7z4Rts; Mon, 16 Sep 2024 23:02:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726527756; 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=6EbSzbd5GS5eI3c7/bR4jpLbcDfQ7diQ3UAFyfApt4c=; b=Q5fgXl0/Lb87cXTdLlPPFTNOhMfxsmoF6IitLkLeoxmOqD7xS+AM7cVdftA7Bc20Pwr4Pq SP+3z6k351ejuhK06JUN1H6XR+EjWc7v1EfN9As8jp6s229oglTaYZes+SZ4qz/hzV8vhK 4/l65wRK7z5gCe2LJVeTBgR9SiUdRw4JtiFbPDjunL6EjKcv8I7kV5loo0tfk7sGBg9RC1 EaQT3FubyfFKfcCGCFi8UW5Pz5Np4xYlZBRo3P+7+4LrfRD0JtnlR2UhxU2hBA093Y9K3+ kJ1JyccdGllawmDmQIFsjKhiVScUeZpIyuAw5U3k4i21t2biXF41iYCOVook5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726527756; a=rsa-sha256; cv=none; b=CeoZ8KbrnyoRi6wwu2CQ+bN9l54ptwWrxtoCygeJ+t23RirCC0th5qxx0SfBPrLBJ5CeOQ /F/3KmX6RVFyeLCfG1AEe42ePprHYn7dlEpkRTzANz3NIiDW7H7l8TFpl7ocNJzNx/u2/9 Q01XAZe+NU0mVYBR1U4PqmBrQsLh+h5rv18MOPl4ybqU47MgQjDZmPesKuQmMe0bFPjMOd qs6jA6Q2X/0SISojibNiBYvNT9Mu2yDxlCGfXw/EFO2d36kvZyQOb6KrJXjYQ9e4CAFduh DbcFJsLQeOeuv19uV7hbbYtyuq8UFID4vUAGrOWE5W2kT5qb3OSLwrC3gjmPaQ== 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=1726527756; 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=6EbSzbd5GS5eI3c7/bR4jpLbcDfQ7diQ3UAFyfApt4c=; b=tg3Dz3yaLQv9moXNmy01sMvZB/pGO1kJuH/yr6v8Lse192yNZIPWSTsVlQeMfT9jnVqDGx RLx1mD8xdO0DF4m4EHDxvIt+1QA1+NZmaU3A048j8OPH8UgxwA3oDsnitgILJqGDxiwiK6 hyU2Wul4Db7Inz5viKXunBO88O/FZHzrD4n1Ar0V+/GY5ajfjrvrp+5NuxsVulJjl+Al5J 1JGwhHf+gWntZKvIIPaFIUJVIAG55LPxLK/MnN3DzmJaAF/mcEtR7x4jl0hutfpVHW4qCV nTG3GlbPOp5y229v8illG1+fkypbHyZzOIA6FFNUvU5vpOfzNOpM8+H/n9qgmg== 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 4X70mr0NmXzDwM; Mon, 16 Sep 2024 23:02:36 +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 48GN2ZC2043156; Mon, 16 Sep 2024 23:02:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48GN2ZkU043153; Mon, 16 Sep 2024 23:02:35 GMT (envelope-from git) Date: Mon, 16 Sep 2024 23:02:35 GMT Message-Id: <202409162302.48GN2ZkU043153@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 29a0a720c33f - main - amd64 sysarch(2): style List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 29a0a720c33fc70601ea85f813d982a99c3e7896 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=29a0a720c33fc70601ea85f813d982a99c3e7896 commit 29a0a720c33fc70601ea85f813d982a99c3e7896 Author: Konstantin Belousov AuthorDate: 2024-09-16 19:54:03 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-16 23:02:14 +0000 amd64 sysarch(2): style Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 b626925e1ea1..887c8f05b00d 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -284,7 +284,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; @@ -298,7 +298,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; @@ -313,7 +313,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; @@ -331,7 +331,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;