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>
This commit is contained in:
Родитель
b42dde478b
Коммит
626bc02d4d
|
@ -127,7 +127,7 @@ static int mlx5_netdev_event(struct notifier_block *this,
|
||||||
|
|
||||||
if ((upper == ndev || (!upper && ndev == ibdev->roce.netdev))
|
if ((upper == ndev || (!upper && ndev == ibdev->roce.netdev))
|
||||||
&& ibdev->ib_active) {
|
&& ibdev->ib_active) {
|
||||||
struct ib_event ibev = {0};
|
struct ib_event ibev = { };
|
||||||
|
|
||||||
ibev.device = &ibdev->ib_dev;
|
ibev.device = &ibdev->ib_dev;
|
||||||
ibev.event = (event == NETDEV_UP) ?
|
ibev.event = (event == NETDEV_UP) ?
|
||||||
|
|
Загрузка…
Ссылка в новой задаче