Commit 42fb18fd authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller

net/mlx5: Simplify a test

'create_root_ns()' does not return an error pointer, so the test can be
simplified to be more consistent.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e7947ea7
...@@ -1690,7 +1690,7 @@ static int init_root_ns(struct mlx5_flow_steering *steering) ...@@ -1690,7 +1690,7 @@ static int init_root_ns(struct mlx5_flow_steering *steering)
{ {
steering->root_ns = create_root_ns(steering, FS_FT_NIC_RX); steering->root_ns = create_root_ns(steering, FS_FT_NIC_RX);
if (IS_ERR_OR_NULL(steering->root_ns)) if (!steering->root_ns)
goto cleanup; goto cleanup;
if (init_root_tree(steering, &root_fs, &steering->root_ns->ns.node)) if (init_root_tree(steering, &root_fs, &steering->root_ns->ns.node))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment