]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
mlx5: Use { } instead of { 0 } to init struct
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 6 Dec 2016 01:18:08 +0000 (17:18 -0800)
committerDoug 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

index cda541ced141df75d280f829dbfe722f2adaf723..b81736d625fc554cb70ea3da28bb389e85a78f93 100644 (file)
@@ -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) ?