svn commit: r320816 - head/sys/fs/fdescfs

Dmitry Chagin dchagin at FreeBSD.org
Sat Jul 8 21:05:30 UTC 2017


Author: dchagin
Date: Sat Jul  8 21:05:28 2017
New Revision: 320816
URL: https://svnweb.freebsd.org/changeset/base/320816

Log:
  Remove init from declaration, collapse two int vars declarations into single.
  
  MFC after:	3 weeks

Modified:
  head/sys/fs/fdescfs/fdesc_vfsops.c

Modified: head/sys/fs/fdescfs/fdesc_vfsops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vfsops.c	Sat Jul  8 21:04:09 2017	(r320815)
+++ head/sys/fs/fdescfs/fdesc_vfsops.c	Sat Jul  8 21:05:28 2017	(r320816)
@@ -124,9 +124,9 @@ fdesc_unmount(struct mount *mp, int mntflags)
 {
 	struct fdescmount *fmp;
 	caddr_t data;
-	int error;
-	int flags = 0;
+	int error, flags;
 
+	flags = 0;
 	fmp = (struct fdescmount *)mp->mnt_data;
 	if (mntflags & MNT_FORCE) {
 		/* The hash mutex protects the private mount flags. */


More information about the svn-src-head mailing list