diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-12-06 02:18:08 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-14 19:42:32 +0100 |
commit | 626bc02d4d33510b6ecb6f37c577f844cc6cfc57 (patch) | |
tree | 31cbf081751a9ff371a2b54936ba34060aec85d2 /drivers/infiniband/hw/mlx5 | |
parent | IB/mlx4: Rework special QP creation error path (diff) | |
download | linux-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.c | 2 |
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) ? |