Commit ee39bae6 authored by Chen Ni's avatar Chen Ni Committed by Jakub Kicinski
Browse files

net/mlx5: Use to_delayed_work()



Use to_delayed_work() instead of open-coding it.

Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Acked-by: default avatarMark Bloch <mbloch@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250514072419.2707578-1-nichen@iscas.ac.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4c032725
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -927,8 +927,7 @@ static void mlx5_cmd_comp_handler(struct mlx5_core_dev *dev, u64 vec, bool force

static void cb_timeout_handler(struct work_struct *work)
{
	struct delayed_work *dwork = container_of(work, struct delayed_work,
						  work);
	struct delayed_work *dwork = to_delayed_work(work);
	struct mlx5_cmd_work_ent *ent = container_of(dwork,
						     struct mlx5_cmd_work_ent,
						     cb_timeout_work);