summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-12-06 02:18:08 +0100
committerDoug Ledford <dledford@redhat.com>2016-12-14 19:42:32 +0100
commit626bc02d4d33510b6ecb6f37c577f844cc6cfc57 (patch)
tree31cbf081751a9ff371a2b54936ba34060aec85d2 /drivers/infiniband/hw/mlx5
parentIB/mlx4: Rework special QP creation error path (diff)
downloadlinux-626bc02d4d33510b6ecb6f37c577f844cc6cfc57.tar.xz
linux-626bc02d4d33510b6ecb6f37c577f844cc6cfc57.zip
mlx5: Use { } instead of { 0 } to init struct
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>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index cda541ced141..b81736d625fc 100644
--- 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) ?