diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-04-02 14:39:55 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-04 13:29:04 +0200 |
commit | c7252a6532995fe6971295b7878e5a74b4f85d0c (patch) | |
tree | 37fe22d2a4934fe13b51f6a0237ea8634e7005e2 /drivers/infiniband/core/cm.c | |
parent | RDMA/iw_cxgb4: Always disconnect when QP is transitioning to TERMINATE state (diff) | |
download | linux-c7252a6532995fe6971295b7878e5a74b4f85d0c.tar.xz linux-c7252a6532995fe6971295b7878e5a74b4f85d0c.zip |
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>
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r-- | drivers/infiniband/core/cm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index 5671c92b69bd..1dd2b572f59f 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -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); |