Skip to content

Commit 1e26743

Browse files
committed
vinput: Remove redundant memset call
Remove redundant memset calls as memory allocated with kzalloc is already zeroed due to the presence of the __GFP_ZERO gfp flag.
1 parent 0a27a01 commit 1e26743

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/vinput.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ static struct vinput *vinput_alloc_vdevice(void)
179179

180180
try_module_get(THIS_MODULE);
181181

182-
memset(vinput, 0, sizeof(struct vinput));
183-
184182
spin_lock_init(&vinput->lock);
185183

186184
spin_lock(&vinput_lock);

0 commit comments

Comments
 (0)