Skip to content

Commit

Permalink
msdosfs_denode.c: some style
Browse files Browse the repository at this point in the history
(cherry picked from commit d51b078)
  • Loading branch information
kostikbel committed Feb 4, 2022
1 parent fb65d88 commit d0128bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sys/fs/msdosfs/msdosfs_denode.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ deget(struct msdosfsmount *pmp, u_long dirclust, u_long diroffset,
/*
* 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
Expand Down Expand Up @@ -386,7 +386,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));
}

/*
Expand Down Expand Up @@ -476,7 +476,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);
}

/*
Expand Down

0 comments on commit d0128bd

Please sign in to comment.