projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2c3337
)
RDMA/cm: Remove useless zeroing of static global variable
author
Leon Romanovsky
<leonro@mellanox.com>
Tue, 2 Apr 2019 12:39:55 +0000
(15:39 +0300)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Thu, 4 Apr 2019 11:29:04 +0000
(08:29 -0300)
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>
drivers/infiniband/core/cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/cm.c
b/drivers/infiniband/core/cm.c
index
5671c92
..
1dd2b57
100644
(file)
--- 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);