Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 626bc02d authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford
Browse files

mlx5: Use { } instead of { 0 } to init struct



Detected by sparse.

Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Cc: Eli Cohen <eli@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent b42dde47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) ?