summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-07-30 08:00:54 +0000
committerdchagin <dchagin@FreeBSD.org>2017-07-30 08:00:54 +0000
commit75b97796d3e62eb010b391ac66e55dc9074bb9e3 (patch)
tree546a67df748fe509b72f58026cfafe1dd48550c5
parente30fb5336e7c666cce2e5bec831c8e58db3a6b2a (diff)
downloadFreeBSD-src-75b97796d3e62eb010b391ac66e55dc9074bb9e3.zip
FreeBSD-src-75b97796d3e62eb010b391ac66e55dc9074bb9e3.tar.gz
MFC r320836:
Eliminate bogus casts.
-rw-r--r--sys/fs/fdescfs/fdesc_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c
index 96caf90..119bff2 100644
--- a/sys/fs/fdescfs/fdesc_vnops.c
+++ b/sys/fs/fdescfs/fdesc_vnops.c
@@ -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);
OpenPOWER on IntegriCloud