[00/12] cleanup useless casts of void *
mbox series

Message ID 20190529191501.19053-1-stephen@networkplumber.org
Headers show
Series
  • cleanup useless casts of void *
Related show

Message

Stephen Hemminger May 29, 2019, 7:14 p.m. UTC
Many DPDK drivers have unnecessary cast of the void * pointer
dev->data->dev_private.

Stephen Hemminger (12):
  net/atlantic: remove unnecessary cast
  net/ark: remove unnecessary cast
  net/axgbe: remove unnecessary cast
  net/bnxt: remove unnecessary cast
  net/bonding: remove unnecessary cast
  net/cxgbe: remove unnecessary cast
  net/e1000: remove unnecessary cast of void *
  net/ena: remove unnecessary cast
  net/enic: remove unnecessary cast
  net/i40e: remove unnecessary cast
  net/ixgbe: remove unnecessary cast
  net/mlx5: remove unnecessary cast

 drivers/net/ark/ark_ethdev.c           | 51 +++++----------
 drivers/net/ark/ark_ethdev_rx.c        |  4 +-
 drivers/net/ark/ark_ethdev_tx.c        |  2 +-
 drivers/net/atlantic/atl_ethdev.c      |  9 +--
 drivers/net/axgbe/axgbe_ethdev.c       | 24 ++++---
 drivers/net/axgbe/axgbe_rxtx.c         |  2 +-
 drivers/net/bnxt/bnxt_ethdev.c         | 86 +++++++++++++-------------
 drivers/net/bnxt/bnxt_flow.c           | 10 +--
 drivers/net/bnxt/bnxt_irq.c            |  2 +-
 drivers/net/bnxt/bnxt_rxq.c            |  6 +-
 drivers/net/bnxt/bnxt_stats.c          |  6 +-
 drivers/net/bnxt/bnxt_txq.c            |  2 +-
 drivers/net/bnxt/bnxt_txr.c            |  4 +-
 drivers/net/bnxt/rte_pmd_bnxt.c        | 32 +++++-----
 drivers/net/bonding/rte_eth_bond_pmd.c | 20 +++---
 drivers/net/cxgbe/base/adapter.h       |  2 +-
 drivers/net/cxgbe/cxgbe_ethdev.c       | 60 +++++++++---------
 drivers/net/cxgbe/cxgbe_filter.c       |  2 +-
 drivers/net/cxgbe/cxgbe_main.c         |  6 +-
 drivers/net/cxgbe/cxgbevf_ethdev.c     |  6 +-
 drivers/net/cxgbe/cxgbevf_main.c       |  2 +-
 drivers/net/cxgbe/sge.c                |  8 +--
 drivers/net/e1000/igb_ethdev.c         | 18 ++----
 drivers/net/ena/ena_ethdev.c           | 66 +++++++-------------
 drivers/net/enic/enic.h                |  2 +-
 drivers/net/i40e/i40e_ethdev.c         | 24 +++----
 drivers/net/ixgbe/ixgbe_ethdev.c       | 33 ++++------
 drivers/net/ixgbe/ixgbe_rxtx.c         | 14 ++---
 drivers/net/mlx5/mlx5_flow.c           |  2 +-
 29 files changed, 218 insertions(+), 287 deletions(-)

Comments

Ferruh Yigit June 5, 2019, 2:28 p.m. UTC | #1
On 5/29/2019 8:14 PM, Stephen Hemminger wrote:
> Many DPDK drivers have unnecessary cast of the void * pointer
> dev->data->dev_private.
> 
> Stephen Hemminger (12):
>   net/atlantic: remove unnecessary cast
>   net/ark: remove unnecessary cast
>   net/axgbe: remove unnecessary cast
>   net/bnxt: remove unnecessary cast
>   net/bonding: remove unnecessary cast
>   net/cxgbe: remove unnecessary cast
>   net/e1000: remove unnecessary cast of void *
>   net/ena: remove unnecessary cast
>   net/enic: remove unnecessary cast
>   net/i40e: remove unnecessary cast
>   net/ixgbe: remove unnecessary cast
>   net/mlx5: remove unnecessary cast

For series
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Adding "Cc: stable@dpdk.org" to all, I think getting them into LTS reduces
conflicts later on those lines.

Series applied to dpdk-next-net/master, thanks.