]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
tsnep: Do not print DMA mapping error
authorGerhard Engleder <gerhard@engleder-embedded.com>
Mon, 16 Jan 2023 20:24:52 +0000 (21:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 13:17:06 +0000 (13:17 +0000)
Printing in data path shall be avoided. DMA mapping error is already
counted in stats so printing is not necessary.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/engleder/tsnep_main.c

index 8abe65a8c2f1cf00d9b1290c6ba94da46a6fbaad..d25608e81ad821b5c0283e3f309df0b571958845 100644 (file)
@@ -463,8 +463,6 @@ static netdev_tx_t tsnep_xmit_frame_ring(struct sk_buff *skb,
 
                tx->dropped++;
 
-               netdev_err(tx->adapter->netdev, "TX DMA map failed\n");
-
                return NETDEV_TX_OK;
        }
        length = retval;