From: Stephen Hemminger Date: Wed, 29 May 2019 19:14:58 +0000 (-0700) Subject: net/enic: remove unnecessary cast X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=69b16b36b0a6e0d8db0df3c248c967ffdd77a0de;p=dpdk.git net/enic: remove unnecessary cast The device private pointer (dev_private) is of type void * therefore no cast is necessary in C. Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Reviewed-by: Ferruh Yigit --- diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h index bd2783430c..beb439ee71 100644 --- a/drivers/net/enic/enic.h +++ b/drivers/net/enic/enic.h @@ -252,7 +252,7 @@ static inline unsigned int enic_cq_wq(struct enic *enic, unsigned int wq) static inline struct enic *pmd_priv(struct rte_eth_dev *eth_dev) { - return (struct enic *)eth_dev->data->dev_private; + return eth_dev->data->dev_private; } static inline uint32_t