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

Dmitry Chagin dchagin at FreeBSD.org
Sun Jul 9 14:15:52 UTC 2017


Author: dchagin
Date: Sun Jul  9 14:15:51 2017
New Revision: 320836
URL: https://svnweb.freebsd.org/changeset/base/320836

Log:
  Eliminate the bogus casts.
  
  MFC after:	3 weeks

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

Modified: head/sys/fs/fdescfs/fdesc_vnops.c
==============================================================================
--- head/sys/fs/fdescfs/fdesc_vnops.c	Sun Jul  9 13:56:34 2017	(r320835)
+++ head/sys/fs/fdescfs/fdesc_vnops.c	Sun Jul  9 14:15:51 2017	(r320836)
@@ -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