Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/cm: Remove useless zeroing of static global variable

Static global variables are initialized to zero by C standard,
there is no need to zero them again.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

authored by

Leon Romanovsky and committed by
Jason Gunthorpe
c7252a65 d2c33370

-1
-1
drivers/infiniband/core/cm.c
··· 4498 4498 { 4499 4499 int ret; 4500 4500 4501 - memset(&cm, 0, sizeof cm); 4502 4501 INIT_LIST_HEAD(&cm.device_list); 4503 4502 rwlock_init(&cm.device_lock); 4504 4503 spin_lock_init(&cm.lock);