Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7252a65 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Jason Gunthorpe
Browse files

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: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent d2c33370
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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);