git: d51b0786a2f6 - main - msdosfs_denode.c: some style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Feb 2022 09:03:06 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d51b0786a2f60c3d188cae812cc0a3e0ab1a9893 commit d51b0786a2f60c3d188cae812cc0a3e0ab1a9893 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-02-01 05:15:56 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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); } /*