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:
Kuan-Wei Chiu 2024-05-09 01:09:47 +08:00
parent 0a27a0140f
commit 1e26743c30

View File

@ -179,8 +179,6 @@ static struct vinput *vinput_alloc_vdevice(void)
try_module_get(THIS_MODULE);
memset(vinput, 0, sizeof(struct vinput));
spin_lock_init(&vinput->lock);
spin_lock(&vinput_lock);