aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-05-29 22:50:39 +0000
committerSaeed Mahameed <saeedm@mellanox.com>2019-05-31 12:28:14 -0700
commitc94ff7487754dd23159a8dc47466c0cc82121ebd (patch)
tree1a06ee9f199a37a7e6d520f40c8755fdbee6810a /drivers/infiniband/hw/mlx5
parentnet/mlx5: E-Switch, Honor eswitch functions changed event cap (diff)
downloadlinux-dev-c94ff7487754dd23159a8dc47466c0cc82121ebd.tar.xz
linux-dev-c94ff7487754dd23159a8dc47466c0cc82121ebd.zip
{IB, net}/mlx5: No need to typecast from void* to mlx5_ib_dev*
Avoid typecasting from void* to mlx5_ib_dev* or mlx5e_rep_priv* as it is not needed. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/ib_rep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/ib_rep.h b/drivers/infiniband/hw/mlx5/ib_rep.h
index 1d9778da8a50..c995102b0276 100644
--- a/drivers/infiniband/hw/mlx5/ib_rep.h
+++ b/drivers/infiniband/hw/mlx5/ib_rep.h
@@ -72,6 +72,6 @@ struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw,
static inline
struct mlx5_ib_dev *mlx5_ib_rep_to_dev(struct mlx5_eswitch_rep *rep)
{
- return (struct mlx5_ib_dev *)rep->rep_if[REP_IB].priv;
+ return rep->rep_if[REP_IB].priv;
}
#endif /* __MLX5_IB_REP_H__ */