فهرست منبع

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.
Kuan-Wei Chiu 11 ماه پیش
والد
کامیت
1e26743c30
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      examples/vinput.c

+ 0 - 2
examples/vinput.c

@@ -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);