svn commit: r321715 - stable/11/sys/fs/fdescfs

Dmitry Chagin dchagin at FreeBSD.org
Sun Jul 30 08:00:56 UTC 2017


Author: dchagin
Date: Sun Jul 30 08:00:54 2017
New Revision: 321715
URL: https://svnweb.freebsd.org/changeset/base/321715

Log:
  MFC r320836:
  
  Eliminate bogus casts.

Modified:
  stable/11/sys/fs/fdescfs/fdesc_vnops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- stable/11/sys/fs/fdescfs/fdesc_vnops.c	Sun Jul 30 06:53:58 2017	(r321714)
+++ stable/11/sys/fs/fdescfs/fdesc_vnops.c	Sun Jul 30 08:00:54 2017	(r321715)
@@ -162,7 +162,7 @@ loop:
 	 * If a forced unmount is progressing, we need to drop it. The flags are
 	 * protected by the hashmtx.
 	 */
-	fmp = (struct fdescmount *)mp->mnt_data;
+	fmp = mp->mnt_data;
 	if (fmp == NULL || fmp->flags & FMNT_UNMOUNTF) {
 		mtx_unlock(&fdesc_hashmtx);
 		return (-1);
@@ -207,7 +207,7 @@ loop:
 	 * If a forced unmount is progressing, we need to drop it. The flags are
 	 * protected by the hashmtx.
 	 */
-	fmp = (struct fdescmount *)mp->mnt_data;
+	fmp = mp->mnt_data;
 	if (fmp == NULL || fmp->flags & FMNT_UNMOUNTF) {
 		mtx_unlock(&fdesc_hashmtx);
 		vgone(vp);


More information about the svn-src-all mailing list