]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: axienet: remove unnecessary ftrace-like logging
authorRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Wed, 31 Jul 2024 09:16:06 +0000 (14:46 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Aug 2024 09:25:22 +0000 (10:25 +0100)
remove unnecessary ftrace-like logging. Also fixes below
checkpatch WARNING.

WARNING: Unnecessary ftrace-like logging - prefer using ftrace
+       dev_dbg(&ndev->dev, "%s\n", __func__);

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 32b49270e8d61a373b9ca55cb913bb1c99c015f5..490d647a90699a5c561e4b3b6e68af2a8e7655f1 100644 (file)
@@ -1515,8 +1515,6 @@ static int axienet_open(struct net_device *ndev)
        int ret;
        struct axienet_local *lp = netdev_priv(ndev);
 
-       dev_dbg(&ndev->dev, "%s\n", __func__);
-
        /* When we do an Axi Ethernet reset, it resets the complete core
         * including the MDIO. MDIO must be disabled before resetting.
         * Hold MDIO bus lock to avoid MDIO accesses during the reset.
@@ -1577,8 +1575,6 @@ static int axienet_stop(struct net_device *ndev)
        struct axienet_local *lp = netdev_priv(ndev);
        int i;
 
-       dev_dbg(&ndev->dev, "axienet_close()\n");
-
        if (!lp->use_dmaengine) {
                napi_disable(&lp->napi_tx);
                napi_disable(&lp->napi_rx);