Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2017 14:15:51 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320836 - head/sys/fs/fdescfs
Message-ID:  <201707091415.v69EFpbN027523@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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