projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b42dde4
)
mlx5: Use { } instead of { 0 } to init struct
author
Bart Van Assche
<bart.vanassche@sandisk.com>
Tue, 6 Dec 2016 01:18:08 +0000
(17:18 -0800)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 14 Dec 2016 18:42:32 +0000
(13:42 -0500)
Detected by sparse.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Eli Cohen <eli@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/main.c
b/drivers/infiniband/hw/mlx5/main.c
index cda541ced141df75d280f829dbfe722f2adaf723..b81736d625fc554cb70ea3da28bb389e85a78f93 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/main.c
+++ b/
drivers/infiniband/hw/mlx5/main.c
@@
-127,7
+127,7
@@
static int mlx5_netdev_event(struct notifier_block *this,
if ((upper == ndev || (!upper && ndev == ibdev->roce.netdev))
&& ibdev->ib_active) {
- struct ib_event ibev = {
0
};
+ struct ib_event ibev = {
};
ibev.device = &ibdev->ib_dev;
ibev.event = (event == NETDEV_UP) ?