summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/mount.c
diff options
context:
space:
mode:
authordzwdz2021-09-08 21:00:45 +0200
committerdzwdz2021-09-08 21:00:45 +0200
commit7192887ee27487d209b98b7192cb6798b036b824 (patch)
treefb894fdd01710a7d9dafdaea3033a3a270609f4b /src/kernel/vfs/mount.c
parentddde5ad590d645c653432a8447c82405b0701b90 (diff)
style: simplify the `kmalloc(sizeof(...` calls
Diffstat (limited to 'src/kernel/vfs/mount.c')
-rw-r--r--src/kernel/vfs/mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c
index 37bfe63..b6b3e8d 100644
--- a/src/kernel/vfs/mount.c
+++ b/src/kernel/vfs/mount.c
@@ -3,8 +3,8 @@
#include <kernel/vfs/mount.h>
struct vfs_mount *vfs_mount_seed(void) {
- struct vfs_mount *mount = kmalloc(sizeof(struct vfs_mount));
- struct vfs_backend *backend = kmalloc(sizeof(struct vfs_backend));
+ struct vfs_mount *mount = kmalloc(sizeof *mount);
+ struct vfs_backend *backend = kmalloc(sizeof *backend);
backend->type = VFS_BACK_ROOT;
*mount = (struct vfs_mount){
.prev = NULL,