diff options
author | kib <kib@FreeBSD.org> | 2017-01-12 01:05:34 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-01-12 01:05:34 +0000 |
commit | c1d4c0bf60b7b59ca091fe19df87571815ba5485 (patch) | |
tree | 8ee24a01d71c262f8c251977727c391075b75ba1 /sys | |
parent | 03c28ecc09585e776d89ad036d9b76ddeea9e6df (diff) | |
download | FreeBSD-src-c1d4c0bf60b7b59ca091fe19df87571815ba5485.zip FreeBSD-src-c1d4c0bf60b7b59ca091fe19df87571815ba5485.tar.gz |
MFC r311447:
Some style fixes for getfstat(2)-related code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 3 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 838d1aa..a10c14f 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -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; diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 5ebfb03..973a942 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -476,7 +476,7 @@ restart: continue; } } - if (sfsp && count < maxcount) { + if (sfsp != NULL && count < maxcount) { sp = &mp->mnt_stat; /* * Set these in case the underlying filesystem @@ -521,7 +521,7 @@ restart: vfs_unbusy(mp); } mtx_unlock(&mountlist_mtx); - if (sfsp && count > maxcount) + if (sfsp != NULL && count > maxcount) *countp = maxcount; else *countp = count; |