Skip to content

Commit

Permalink
RDMA/cm: Remove useless zeroing of static global variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leon Romanovsky authored and Jason Gunthorpe committed Apr 4, 2019
1 parent d2c3337 commit c7252a6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/infiniband/core/cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4498,7 +4498,6 @@ static int __init ib_cm_init(void)
{
int ret;

memset(&cm, 0, sizeof cm);
INIT_LIST_HEAD(&cm.device_list);
rwlock_init(&cm.device_lock);
spin_lock_init(&cm.lock);
Expand Down

0 comments on commit c7252a6

Please sign in to comment.