Message ID | 1722417367-4113948-3-git-send-email-radhey.shyam.pandey@amd.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f7061a3e04cf17162a2d96f4f746f7904c26158e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: axienet: Fix coding style issues | expand |
On Wed, Jul 31, 2024 at 02:46:05PM +0530, Radhey Shyam Pandey wrote: > Add missing blank line after declaration. Fixes below > checkpatch warnings. > > WARNING: Missing a blank line after declarations > + struct sockaddr *addr = p; > + axienet_set_mac_address(ndev, addr->sa_data); > > WARNING: Missing a blank line after declarations > + struct axienet_local *lp = netdev_priv(ndev); > + disable_irq(lp->tx_irq); > > Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index e342f387c3dd..7a89d4fbc884 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -415,6 +415,7 @@ static void axienet_set_mac_address(struct net_device *ndev, static int netdev_set_mac_address(struct net_device *ndev, void *p) { struct sockaddr *addr = p; + axienet_set_mac_address(ndev, addr->sa_data); return 0; } @@ -1657,6 +1658,7 @@ static int axienet_change_mtu(struct net_device *ndev, int new_mtu) static void axienet_poll_controller(struct net_device *ndev) { struct axienet_local *lp = netdev_priv(ndev); + disable_irq(lp->tx_irq); disable_irq(lp->rx_irq); axienet_rx_irq(lp->tx_irq, ndev);
Add missing blank line after declaration. Fixes below checkpatch warnings. WARNING: Missing a blank line after declarations + struct sockaddr *addr = p; + axienet_set_mac_address(ndev, addr->sa_data); WARNING: Missing a blank line after declarations + struct axienet_local *lp = netdev_priv(ndev); + disable_irq(lp->tx_irq); Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> --- Changes for v2: - Split each coding style change into separate patch. --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 ++ 1 file changed, 2 insertions(+)