aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-03-08 18:37:43 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-03-13 00:31:20 +0000
commit4794e34384f00577e7eaf9dbf8be7724f3a39ef6 (patch)
treed75cc31f3c8a4735b934dbf35e2f9556e3b2316d /sys
parentd119f5a194fe0dd81e43f8ab7470b1b0a51b932d (diff)
downloadsrc-4794e34384f00577e7eaf9dbf8be7724f3a39ef6.tar.gz
src-4794e34384f00577e7eaf9dbf8be7724f3a39ef6.zip
nullfs_mount(): remove unneeded cast
(cherry picked from commit 0724293331e4c35c0a8cc5b8922a153545725c24)
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/nullfs/null_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 0285a5e45e51..e08ed2f55d38 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -174,8 +174,8 @@ nullfs_mount(struct mount *mp)
return (EINVAL);
}
- xmp = (struct null_mount *) malloc(sizeof(struct null_mount),
- M_NULLFSMNT, M_WAITOK | M_ZERO);
+ xmp = malloc(sizeof(struct null_mount), M_NULLFSMNT,
+ M_WAITOK | M_ZERO);
/*
* Save pointer to underlying FS and the reference to the