mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-25 09:41:47 +08:00
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.
This commit is contained in:
parent
0a27a0140f
commit
1e26743c30
|
@ -179,8 +179,6 @@ static struct vinput *vinput_alloc_vdevice(void)
|
||||||
|
|
||||||
try_module_get(THIS_MODULE);
|
try_module_get(THIS_MODULE);
|
||||||
|
|
||||||
memset(vinput, 0, sizeof(struct vinput));
|
|
||||||
|
|
||||||
spin_lock_init(&vinput->lock);
|
spin_lock_init(&vinput->lock);
|
||||||
|
|
||||||
spin_lock(&vinput_lock);
|
spin_lock(&vinput_lock);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user