Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2017 01:20:51 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r311959 - in stable/10/sys: compat/freebsd32 kern
Message-ID:  <201701120120.v0C1Kpg7074515@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jan 12 01:20:51 2017
New Revision: 311959
URL: https://svnweb.freebsd.org/changeset/base/311959

Log:
  MFC r311447:
  Some style fixes for getfstat(2)-related code.

Modified:
  stable/10/sys/compat/freebsd32/freebsd32_misc.c
  stable/10/sys/kern/vfs_syscalls.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- stable/10/sys/compat/freebsd32/freebsd32_misc.c	Thu Jan 12 01:13:05 2017	(r311958)
+++ stable/10/sys/compat/freebsd32/freebsd32_misc.c	Thu Jan 12 01:20:51 2017	(r311959)
@@ -244,7 +244,8 @@ copy_statfs(struct statfs *in, struct st
 
 #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;

Modified: stable/10/sys/kern/vfs_syscalls.c
==============================================================================
--- stable/10/sys/kern/vfs_syscalls.c	Thu Jan 12 01:13:05 2017	(r311958)
+++ stable/10/sys/kern/vfs_syscalls.c	Thu Jan 12 01:20:51 2017	(r311959)
@@ -464,7 +464,7 @@ kern_getfsstat(struct thread *td, struct
 			nmp = TAILQ_NEXT(mp, mnt_list);
 			continue;
 		}
-		if (sfsp && count < maxcount) {
+		if (sfsp != NULL && count < maxcount) {
 			sp = &mp->mnt_stat;
 			/*
 			 * Set these in case the underlying filesystem
@@ -509,7 +509,7 @@ kern_getfsstat(struct thread *td, struct
 		vfs_unbusy(mp);
 	}
 	mtx_unlock(&mountlist_mtx);
-	if (sfsp && count > maxcount)
+	if (sfsp != NULL && count > maxcount)
 		td->td_retval[0] = maxcount;
 	else
 		td->td_retval[0] = count;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701120120.v0C1Kpg7074515>