git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
890728f
)
net/enic: remove unnecessary cast
author
Stephen Hemminger
<stephen@networkplumber.org>
Wed, 29 May 2019 19:14:58 +0000
(12:14 -0700)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:29 +0000
(23:54 +0900)
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 <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/enic/enic.h
patch
|
blob
|
history
diff --git
a/drivers/net/enic/enic.h
b/drivers/net/enic/enic.h
index
bd27834
..
beb439e
100644
(file)
--- 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