]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ll_temac: axienet: align with open parenthesis
authorhuangjunxian <huangjunxian6@hisilicon.com>
Sat, 17 Sep 2022 10:38:39 +0000 (18:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 01:25:19 +0000 (18:25 -0700)
Cleaning some static warnings of open parenthesis.

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>
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 8eb33899f346e003121cd89184910f767476b8f3..586017792181483899319ccc151ed2599f2e3c79 100644 (file)
@@ -261,7 +261,7 @@ static void temac_dma_dcr_out(struct temac_local *lp, int reg, u32 value)
  * I/O  functions
  */
 static int temac_dcr_setup(struct temac_local *lp, struct platform_device *op,
-                               struct device_node *np)
+                          struct device_node *np)
 {
        unsigned int dcrs;
 
@@ -286,7 +286,7 @@ static int temac_dcr_setup(struct temac_local *lp, struct platform_device *op,
  * such as with MicroBlaze and x86
  */
 static int temac_dcr_setup(struct temac_local *lp, struct platform_device *op,
-                               struct device_node *np)
+                          struct device_node *np)
 {
        return -1;
 }
@@ -309,7 +309,7 @@ static void temac_dma_bd_release(struct net_device *ndev)
                        break;
                else {
                        dma_unmap_single(ndev->dev.parent, lp->rx_bd_v[i].phys,
-                                       XTE_MAX_JUMBO_FRAME_SIZE, DMA_FROM_DEVICE);
+                                        XTE_MAX_JUMBO_FRAME_SIZE, DMA_FROM_DEVICE);
                        dev_kfree_skb(lp->rx_skb[i]);
                }
        }
@@ -682,7 +682,6 @@ static void temac_device_reset(struct net_device *ndev)
        if (temac_dma_bd_init(ndev)) {
                dev_err(&ndev->dev,
                        "%s descriptor allocation failed\n", __func__);
-
        }
 
        spin_lock_irqsave(lp->indirect_lock, flags);
index 8ff4333de2ad9b03f88b4ba81f5a67ef91a6473b..6370c447ac5cacfb8ef7e6144b0cb2d88a4204f0 100644 (file)
@@ -603,7 +603,7 @@ static inline void axienet_dma_out_addr(struct axienet_local *lp, off_t reg,
 #else /* CONFIG_64BIT */
 
 static inline void axienet_dma_out_addr(struct axienet_local *lp, off_t reg,
-                                dma_addr_t addr)
+                                       dma_addr_t addr)
 {
        axienet_dma_out32(lp, reg, lower_32_bits(addr));
 }
index 9fde5941a469cba001c5029cd9811e217ca6b431..15d1c8158f31e1e16a95521d9bd60e00697a4037 100644 (file)
@@ -597,7 +597,7 @@ static int axienet_device_reset(struct net_device *ndev)
        lp->options &= (~XAE_OPTION_JUMBO);
 
        if ((ndev->mtu > XAE_MTU) &&
-               (ndev->mtu <= XAE_JUMBO_MTU)) {
+           (ndev->mtu <= XAE_JUMBO_MTU)) {
                lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN +
                                        XAE_TRL_SIZE;