Some style fixes for getfstat(2)-related code.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-01-05 17:03:35 +00:00
parent f9b66e4c7d
commit 607fa849d2
2 changed files with 4 additions and 3 deletions

View File

@ -244,7 +244,8 @@ copy_statfs(struct statfs *in, struct statfs32 *out)
#ifdef COMPAT_FREEBSD4
int
freebsd4_freebsd32_getfsstat(struct thread *td, struct freebsd4_freebsd32_getfsstat_args *uap)
freebsd4_freebsd32_getfsstat(struct thread *td,
struct freebsd4_freebsd32_getfsstat_args *uap)
{
struct statfs *buf, *sp;
struct statfs32 stat32;

View File

@ -485,7 +485,7 @@ restart:
continue;
}
}
if (sfsp && count < maxcount) {
if (sfsp != NULL && count < maxcount) {
sp = &mp->mnt_stat;
/*
* Set these in case the underlying filesystem
@ -530,7 +530,7 @@ restart:
vfs_unbusy(mp);
}
mtx_unlock(&mountlist_mtx);
if (sfsp && count > maxcount)
if (sfsp != NULL && count > maxcount)
*countp = maxcount;
else
*countp = count;