Skip to content

Commit c7252a6

Browse files
Leon Romanovskyjgunthorpe
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent d2c3337 commit c7252a6

File tree

1 file changed

+0
-1
lines changed
  • drivers/infiniband/core

1 file changed

+0
-1
lines changed

drivers/infiniband/core/cm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4498,7 +4498,6 @@ static int __init ib_cm_init(void)
44984498
{
44994499
int ret;
45004500

4501-
memset(&cm, 0, sizeof cm);
45024501
INIT_LIST_HEAD(&cm.device_list);
45034502
rwlock_init(&cm.device_lock);
45044503
spin_lock_init(&cm.lock);

0 commit comments

Comments
 (0)