From 7192887ee27487d209b98b7192cb6798b036b824 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 8 Sep 2021 21:00:45 +0200 Subject: style: simplify the `kmalloc(sizeof(...` calls --- src/kernel/vfs/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/mount.c') 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 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, -- cgit v1.2.3