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

Dmitry Chagin dchagin at FreeBSD.org
Sat Jul 8 21:04:10 UTC 2017


Author: dchagin
Date: Sat Jul  8 21:04:09 2017
New Revision: 320815
URL: https://svnweb.freebsd.org/changeset/base/320815

Log:
  Remove init from declaration.
  
  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:02:40 2017	(r320814)
+++ head/sys/fs/fdescfs/fdesc_vfsops.c	Sat Jul  8 21:04:09 2017	(r320815)
@@ -78,10 +78,10 @@ fdesc_cmount(struct mntarg *ma, void *data, uint64_t f
 static int
 fdesc_mount(struct mount *mp)
 {
-	int error = 0;
 	struct fdescmount *fmp;
 	struct thread *td = curthread;
 	struct vnode *rvp;
+	int error;
 
 	if (!prison_allow(td->td_ucred, PR_ALLOW_MOUNT_FDESCFS))
 		return (EPERM);


More information about the svn-src-head mailing list