Skip to content

Commit

Permalink
net/mlx5: remove unnecessary cast
Browse files Browse the repository at this point in the history
[ upstream commit d812a3c ]

The device private pointer (dev_private) is of type void *
therefore no cast is necessary in C.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
shemminger authored and kevintraynor committed Jun 24, 2019
1 parent 4b30431 commit a5d1ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mlx5/mlx5_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,7 @@ mlx5_flow_create(struct rte_eth_dev *dev,
const struct rte_flow_action actions[],
struct rte_flow_error *error)
{
struct mlx5_priv *priv = (struct mlx5_priv *)dev->data->dev_private;
struct mlx5_priv *priv = dev->data->dev_private;

return flow_list_create(dev, &priv->flows,
attr, items, actions, error);
Expand Down

0 comments on commit a5d1ee7

Please sign in to comment.