Commit d3616dc7 authored by wuych's avatar wuych Committed by David S. Miller
Browse files

net: liquidio: lio_main: Remove unnecessary (void*) conversions



Pointer variables of void * type do not require type cast.

Signed-off-by: default avatarwuych <yunchuan@nfschina.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2598619e
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -191,8 +191,7 @@ static void octeon_droq_bh(struct tasklet_struct *t)

static int lio_wait_for_oq_pkts(struct octeon_device *oct)
{
	struct octeon_device_priv *oct_priv =
		(struct octeon_device_priv *)oct->priv;
	struct octeon_device_priv *oct_priv = oct->priv;
	int retry = 100, pkt_cnt = 0, pending_pkts = 0;
	int i;

@@ -950,8 +949,7 @@ static void octeon_destroy_resources(struct octeon_device *oct)
{
	int i, refcount;
	struct msix_entry *msix_entries;
	struct octeon_device_priv *oct_priv =
		(struct octeon_device_priv *)oct->priv;
	struct octeon_device_priv *oct_priv = oct->priv;

	struct handshake *hs;

@@ -1211,8 +1209,7 @@ static int send_rx_ctrl_cmd(struct lio *lio, int start_stop)
static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx)
{
	struct net_device *netdev = oct->props[ifidx].netdev;
	struct octeon_device_priv *oct_priv =
		(struct octeon_device_priv *)oct->priv;
	struct octeon_device_priv *oct_priv = oct->priv;
	struct napi_struct *napi, *n;
	struct lio *lio;

@@ -1774,8 +1771,7 @@ static int liquidio_open(struct net_device *netdev)
{
	struct lio *lio = GET_LIO(netdev);
	struct octeon_device *oct = lio->oct_dev;
	struct octeon_device_priv *oct_priv =
		(struct octeon_device_priv *)oct->priv;
	struct octeon_device_priv *oct_priv = oct->priv;
	struct napi_struct *napi, *n;
	int ret = 0;

@@ -1855,8 +1851,7 @@ static int liquidio_stop(struct net_device *netdev)
{
	struct lio *lio = GET_LIO(netdev);
	struct octeon_device *oct = lio->oct_dev;
	struct octeon_device_priv *oct_priv =
		(struct octeon_device_priv *)oct->priv;
	struct octeon_device_priv *oct_priv = oct->priv;
	struct napi_struct *napi, *n;
	int ret = 0;

@@ -4057,8 +4052,7 @@ static int octeon_device_init(struct octeon_device *octeon_dev)
	char bootcmd[] = "\n";
	char *dbg_enb = NULL;
	enum lio_fw_state fw_state;
	struct octeon_device_priv *oct_priv =
		(struct octeon_device_priv *)octeon_dev->priv;
	struct octeon_device_priv *oct_priv = octeon_dev->priv;
	atomic_set(&octeon_dev->status, OCT_DEV_BEGIN_STATE);

	/* Enable access to the octeon device and make its DMA capability