diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-04-02 15:39:55 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-04 08:29:04 -0300 |
commit | c7252a6532995fe6971295b7878e5a74b4f85d0c (patch) | |
tree | 37fe22d2a4934fe13b51f6a0237ea8634e7005e2 | |
parent | d2c33370ae73105c7c7df8f7048d20653991b4cb (diff) |
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>
-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); |