Message ID | 20240302070318.62997-5-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | ac8082a3c7a158640a2c493ec437dd9da881a6a7 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,V2,1/9] Revert "net/mlx5: Block entering switchdev mode with ns inconsistency" | expand |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c index 8ff6dc9bc803..b5c709bba155 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/health.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c @@ -452,10 +452,10 @@ mlx5_fw_reporter_diagnose(struct devlink_health_reporter *reporter, struct health_buffer __iomem *h = health->health; u8 synd = ioread8(&h->synd); + devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); if (!synd) return 0; - devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd)); return 0;