aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Ni <[email protected]>2025-05-14 07:24:19 +0000
committerJakub Kicinski <[email protected]>2025-05-15 14:41:36 +0000
commitee39bae6c141876f5b4c001f6b12b4f8ffb4cd08 (patch)
tree7e769c1147270d86b0cb0488b3bb33975f48689e
parentMerge branch 'net-cover-more-per-cpu-storage-with-local-nested-bh-locking' (diff)
downloadkernel-ee39bae6c141876f5b4c001f6b12b4f8ffb4cd08.tar.gz
kernel-ee39bae6c141876f5b4c001f6b12b4f8ffb4cd08.zip
net/mlx5: Use to_delayed_work()
Use to_delayed_work() instead of open-coding it. Signed-off-by: Chen Ni <[email protected]> Acked-by: Mark Bloch <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
index e53dbdc0a7a1..b1aeea7c4a91 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
@@ -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);