Eliminate the bogus casts.
MFC after: 3 weeks
This commit is contained in:
parent
2353f805ff
commit
16e3859b47
@ -162,7 +162,7 @@ fdesc_allocvp(fdntype ftype, unsigned fd_fd, int ix, struct mount *mp,
|
||||
* 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 @@ fdesc_allocvp(fdntype ftype, unsigned fd_fd, int ix, struct mount *mp,
|
||||
* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user