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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to