diff options
author | dzwdz | 2021-09-08 21:00:45 +0200 |
---|---|---|
committer | dzwdz | 2021-09-08 21:00:45 +0200 |
commit | 7192887ee27487d209b98b7192cb6798b036b824 (patch) | |
tree | fb894fdd01710a7d9dafdaea3033a3a270609f4b /src/kernel/tests | |
parent | ddde5ad590d645c653432a8447c82405b0701b90 (diff) |
style: simplify the `kmalloc(sizeof(...` calls
Diffstat (limited to 'src/kernel/tests')
-rw-r--r-- | src/kernel/tests/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/tests/vfs.c b/src/kernel/tests/vfs.c index 69e40af..3f0685e 100644 --- a/src/kernel/tests/vfs.c +++ b/src/kernel/tests/vfs.c @@ -63,7 +63,7 @@ TEST(vfs_mount_resolve) { struct vfs_mount *mount = NULL; #define ADD_MOUNT(path) do { \ - struct vfs_mount *mount2 = kmalloc(sizeof(struct vfs_mount)); \ + struct vfs_mount *mount2 = kmalloc(sizeof *mount2); \ mount2->prefix = path; \ mount2->prefix_len = sizeof(path) - 1; \ mount2->prev = mount; \ |