net: ll_temac: axienet: delete unnecessary blank lines and spaces
Cleaning some static warnings of indent. Signed-off-by: huangjunxian <huangjunxian6@hisilicon.com> Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com> Reviewed-by: Harini Katakam <harini.katakam@amd.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a0a8509768
commit
7fe85bb3af
@ -1013,7 +1013,6 @@ static void ll_temac_recv(struct net_device *ndev)
|
|||||||
if (((lp->temac_features & TEMAC_FEATURE_RX_CSUM) != 0) &&
|
if (((lp->temac_features & TEMAC_FEATURE_RX_CSUM) != 0) &&
|
||||||
(skb->protocol == htons(ETH_P_IP)) &&
|
(skb->protocol == htons(ETH_P_IP)) &&
|
||||||
(skb->len > 64)) {
|
(skb->len > 64)) {
|
||||||
|
|
||||||
/* Convert from device endianness (be32) to cpu
|
/* Convert from device endianness (be32) to cpu
|
||||||
* endianness, and if necessary swap the bytes
|
* endianness, and if necessary swap the bytes
|
||||||
* (back) for proper IP checksum byte order
|
* (back) for proper IP checksum byte order
|
||||||
|
@ -645,7 +645,7 @@ static int axienet_device_reset(struct net_device *ndev)
|
|||||||
* @nr_bds: Max number of descriptors to clean up
|
* @nr_bds: Max number of descriptors to clean up
|
||||||
* @force: Whether to clean descriptors even if not complete
|
* @force: Whether to clean descriptors even if not complete
|
||||||
* @sizep: Pointer to a u32 filled with the total sum of all bytes
|
* @sizep: Pointer to a u32 filled with the total sum of all bytes
|
||||||
* in all cleaned-up descriptors. Ignored if NULL.
|
* in all cleaned-up descriptors. Ignored if NULL.
|
||||||
* @budget: NAPI budget (use 0 when not called from NAPI poll)
|
* @budget: NAPI budget (use 0 when not called from NAPI poll)
|
||||||
*
|
*
|
||||||
* Would either be called after a successful transmit operation, or after
|
* Would either be called after a successful transmit operation, or after
|
||||||
@ -1375,7 +1375,7 @@ static int axienet_ethtools_get_regs_len(struct net_device *ndev)
|
|||||||
static void axienet_ethtools_get_regs(struct net_device *ndev,
|
static void axienet_ethtools_get_regs(struct net_device *ndev,
|
||||||
struct ethtool_regs *regs, void *ret)
|
struct ethtool_regs *regs, void *ret)
|
||||||
{
|
{
|
||||||
u32 *data = (u32 *) ret;
|
u32 *data = (u32 *)ret;
|
||||||
size_t len = sizeof(u32) * AXIENET_REGS_N;
|
size_t len = sizeof(u32) * AXIENET_REGS_N;
|
||||||
struct axienet_local *lp = netdev_priv(ndev);
|
struct axienet_local *lp = netdev_priv(ndev);
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ static int axienet_mdio_write(struct mii_bus *bus, int phy_id, int reg,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
axienet_iow(lp, XAE_MDIO_MWD_OFFSET, (u32) val);
|
axienet_iow(lp, XAE_MDIO_MWD_OFFSET, (u32)val);
|
||||||
axienet_iow(lp, XAE_MDIO_MCR_OFFSET,
|
axienet_iow(lp, XAE_MDIO_MCR_OFFSET,
|
||||||
(((phy_id << XAE_MDIO_MCR_PHYAD_SHIFT) &
|
(((phy_id << XAE_MDIO_MCR_PHYAD_SHIFT) &
|
||||||
XAE_MDIO_MCR_PHYAD_MASK) |
|
XAE_MDIO_MCR_PHYAD_MASK) |
|
||||||
|
Loading…
Reference in New Issue
Block a user