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>
This commit is contained in:
parent
d2c33370ae
commit
c7252a6532
@ -4498,7 +4498,6 @@ static int __init ib_cm_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
memset(&cm, 0, sizeof cm);
|
|
||||||
INIT_LIST_HEAD(&cm.device_list);
|
INIT_LIST_HEAD(&cm.device_list);
|
||||||
rwlock_init(&cm.device_lock);
|
rwlock_init(&cm.device_lock);
|
||||||
spin_lock_init(&cm.lock);
|
spin_lock_init(&cm.lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user