From nobody Tue Feb 01 09:03:06 2022 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 CCD7A19AD77F; Tue, 1 Feb 2022 09:03:06 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JnzVL5Nc4z4Wck; Tue, 1 Feb 2022 09:03:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643706186; 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=aWucuOhv0m2OWPBOHZG9hH/fYO8kO57FQ0flxhfp7+0=; b=VOWUUPlohwwRp95yY/Maa4wAP3uLB+yhyYAlvV5QKwk+D0tVlihJsdWAWvv6JLAyAjhwjm Il89f7QFsNocuxiunBI+qkAYMwMaX5FMrHNmDegPFq4pTNjIjsWRtumAiWwO2qVtJtRVlE pHAfrkazNimvKxXsXoM7KGtIF9XMDt05LWlZc6bx+/1GqomRA50GUDVNZCj5hCeHUbkXig rUiysAViUy4eT3+I41HiNNL1jgvrGm4ySoNpcxDb3zRoFS26Hfdq6K7Imn4EuANnrmejAV 7xCUPJ0l5cRy/mMbBV6yYwLShjvqRybAIQZHDw+bPJJl23LmE+/vEOVMCvchzg== 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 98EE7553D; Tue, 1 Feb 2022 09:03:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 211936oD043037; Tue, 1 Feb 2022 09:03:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 211936pj043036; Tue, 1 Feb 2022 09:03:06 GMT (envelope-from git) Date: Tue, 1 Feb 2022 09:03:06 GMT Message-Id: <202202010903.211936pj043036@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: d51b0786a2f6 - main - msdosfs_denode.c: some 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: d51b0786a2f60c3d188cae812cc0a3e0ab1a9893 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643706186; 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=aWucuOhv0m2OWPBOHZG9hH/fYO8kO57FQ0flxhfp7+0=; b=J6R+PXChEQvcv0e+pdLm6BawTgXP4DNKpUEgxN408j2iaNbm7XXx1U8dOKzg+9uR5pK7r+ 0228j8dH+8Zn+/rdPNbkBOfNvtLggWntvmD8+FjafOl65FZweBvARl1HzkaVZ2TgrLJVV0 eaQWBsZgJIdXa0g3+wIh52KpKSv33Kdd8UMWzIyvyG5+wYi0xAhusXv49iGJjjerCl9Tvz /fOVLwif9349By8FjnMYUZlpIx9I6A89vgcm8GPlT763bNIXebX82rp/4ayWvg7e6LbJ5g 2BkBk02K1crYWc3UL8qxxl0GcyTyaTX+yEhwKIts/WWWAbvqllZLOjNiD26bOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643706186; a=rsa-sha256; cv=none; b=iOs3AJDj2M5IMT3jqioIGBw3By1UPGZrqST7/z/N7XOslpN9qxwGQ2qWwEHeWAdrIR2kDC z9cPrEqpPLsgPEEko0V24Mx0GGK1Z3lSx/8gAhVHmoFRMHLgotPgk1KRU+jbqvX9q7SFFk N3p9GmGeGCIjsDn1K3tojGUMfuxA8F2AqY1DkSAoFkxjgDREZ5lzoArQ2huWXbe9cryfsb qs6PM++U/ioo2i+4vR9RATr427/w9YuMiFXmVJL7QiBRQiCbGmR4L24pa/QuymhjJyIclT j7U1ApeJAcCFShQ9TTtrGaJ1kuH5dfKc9n+xO2j3sUqFERBPs6Zou5zexJSa8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d51b0786a2f60c3d188cae812cc0a3e0ab1a9893 commit d51b0786a2f60c3d188cae812cc0a3e0ab1a9893 Author: Konstantin Belousov AuthorDate: 2022-02-01 05:15:56 +0000 Commit: Konstantin Belousov CommitDate: 2022-02-01 08:51:48 +0000 msdosfs_denode.c: some style Reviewed by: mckusick Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D34126 --- sys/fs/msdosfs/msdosfs_denode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c index 2d682fa403dc..70b574e48e4b 100644 --- a/sys/fs/msdosfs/msdosfs_denode.c +++ b/sys/fs/msdosfs/msdosfs_denode.c @@ -206,9 +206,9 @@ badoff: /* * Copy the directory entry into the denode area of the vnode. */ - if ((dirclust == MSDOSFSROOT - || (FAT32(pmp) && dirclust == pmp->pm_rootdirblk)) - && diroffset == MSDOSFSROOT_OFS) { + if ((dirclust == MSDOSFSROOT || + (FAT32(pmp) && dirclust == pmp->pm_rootdirblk)) && + diroffset == MSDOSFSROOT_OFS) { /* * Directory entry for the root directory. There isn't one, * so we manufacture one. We should probably rummage @@ -387,7 +387,7 @@ detrunc(struct denode *dep, u_long length, int flags, struct ucred *cred) if (dep->de_FileSize < length) { vnode_pager_setsize(DETOV(dep), length); - return deextend(dep, length, cred); + return (deextend(dep, length, cred)); } /* @@ -477,7 +477,7 @@ detrunc(struct denode *dep, u_long length, int flags, struct ucred *cred) return (error); } fc_setcache(dep, FC_LASTFC, de_cluster(pmp, length - 1), - eofentry); + eofentry); } /*