From ebb16d5e93934c27ccf4e54e780db0b80bd4142e Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 7 Apr 2022 10:46:48 -0700 Subject: [PATCH] mlx5: Pass the correct data pointer to the add_dst_cb instead of NULL. Reported by: -Wunused-but-set-variable Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34812 --- sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c index ecfac9adb98..749d128fe34 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c @@ -1521,7 +1521,7 @@ static void call_to_add_rule_notifiers(struct mlx5_flow_rule *dst, mutex_unlock(&dst->clients_lock); err = iter_handler->add_dst_cb(dst, is_new_rule, - NULL, + data, iter_handler->client_context); if (err) break;