drivers/net/tehuti.c: trivial checkpatch cleanups
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cb001a1f7d
commit
249658d5c2
@ -1605,7 +1605,7 @@ static inline int bdx_tx_space(struct bdx_priv *priv)
|
|||||||
fsize = f->m.rptr - f->m.wptr;
|
fsize = f->m.rptr - f->m.wptr;
|
||||||
if (fsize <= 0)
|
if (fsize <= 0)
|
||||||
fsize = f->m.memsz + fsize;
|
fsize = f->m.memsz + fsize;
|
||||||
return (fsize);
|
return fsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* bdx_tx_transmit - send packet to NIC
|
/* bdx_tx_transmit - send packet to NIC
|
||||||
@ -2295,13 +2295,13 @@ bdx_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecoal)
|
|||||||
/* Convert RX fifo size to number of pending packets */
|
/* Convert RX fifo size to number of pending packets */
|
||||||
static inline int bdx_rx_fifo_size_to_packets(int rx_size)
|
static inline int bdx_rx_fifo_size_to_packets(int rx_size)
|
||||||
{
|
{
|
||||||
return ((FIFO_SIZE * (1 << rx_size)) / sizeof(struct rxf_desc));
|
return (FIFO_SIZE * (1 << rx_size)) / sizeof(struct rxf_desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert TX fifo size to number of pending packets */
|
/* Convert TX fifo size to number of pending packets */
|
||||||
static inline int bdx_tx_fifo_size_to_packets(int tx_size)
|
static inline int bdx_tx_fifo_size_to_packets(int tx_size)
|
||||||
{
|
{
|
||||||
return ((FIFO_SIZE * (1 << tx_size)) / BDX_TXF_DESC_SZ);
|
return (FIFO_SIZE * (1 << tx_size)) / BDX_TXF_DESC_SZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2393,10 +2393,10 @@ static int bdx_get_sset_count(struct net_device *netdev, int stringset)
|
|||||||
case ETH_SS_STATS:
|
case ETH_SS_STATS:
|
||||||
BDX_ASSERT(ARRAY_SIZE(bdx_stat_names)
|
BDX_ASSERT(ARRAY_SIZE(bdx_stat_names)
|
||||||
!= sizeof(struct bdx_stats) / sizeof(u64));
|
!= sizeof(struct bdx_stats) / sizeof(u64));
|
||||||
return ((priv->stats_flag) ? ARRAY_SIZE(bdx_stat_names) : 0);
|
return (priv->stats_flag) ? ARRAY_SIZE(bdx_stat_names) : 0;
|
||||||
default:
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user