]> git.dujemihanovic.xyz Git - linux.git/commitdiff
net: xilinx: axienet: Remove unused checksum variables
authorSean Anderson <sean.anderson@linux.dev>
Mon, 9 Sep 2024 16:10:13 +0000 (12:10 -0400)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Sep 2024 01:34:50 +0000 (18:34 -0700)
These variables are set but never used. Remove them.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://patch.msgid.link/20240909161016.1149119-2-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 43d81b40f76186e2b6b60c873c627aa089c44a35..d64b8abcf01867f9ce04df20da51c942b50cc123 100644 (file)
@@ -529,8 +529,6 @@ struct skbuf_dma_descriptor {
  *               supported, the maximum frame size would be 9k. Else it is
  *               1522 bytes (assuming support for basic VLAN)
  * @rxmem:     Stores rx memory size for jumbo frame handling.
- * @csum_offload_on_tx_path:   Stores the checksum selection on TX side.
- * @csum_offload_on_rx_path:   Stores the checksum selection on RX side.
  * @coalesce_count_rx: Store the irq coalesce on RX side.
  * @coalesce_usec_rx:  IRQ coalesce delay for RX
  * @coalesce_count_tx: Store the irq coalesce on TX side.
@@ -609,9 +607,6 @@ struct axienet_local {
        u32 max_frm_size;
        u32 rxmem;
 
-       int csum_offload_on_tx_path;
-       int csum_offload_on_rx_path;
-
        u32 coalesce_count_rx;
        u32 coalesce_usec_rx;
        u32 coalesce_count_tx;
index 374dff70ef0dbf59f400a9591b955c5064d8beb3..90ccb0acb14a912821f7e69e2160a9b2bc52cea1 100644 (file)
@@ -2639,38 +2639,26 @@ static int axienet_probe(struct platform_device *pdev)
        if (!ret) {
                switch (value) {
                case 1:
-                       lp->csum_offload_on_tx_path =
-                               XAE_FEATURE_PARTIAL_TX_CSUM;
                        lp->features |= XAE_FEATURE_PARTIAL_TX_CSUM;
                        /* Can checksum TCP/UDP over IPv4. */
                        ndev->features |= NETIF_F_IP_CSUM;
                        break;
                case 2:
-                       lp->csum_offload_on_tx_path =
-                               XAE_FEATURE_FULL_TX_CSUM;
                        lp->features |= XAE_FEATURE_FULL_TX_CSUM;
                        /* Can checksum TCP/UDP over IPv4. */
                        ndev->features |= NETIF_F_IP_CSUM;
                        break;
-               default:
-                       lp->csum_offload_on_tx_path = XAE_NO_CSUM_OFFLOAD;
                }
        }
        ret = of_property_read_u32(pdev->dev.of_node, "xlnx,rxcsum", &value);
        if (!ret) {
                switch (value) {
                case 1:
-                       lp->csum_offload_on_rx_path =
-                               XAE_FEATURE_PARTIAL_RX_CSUM;
                        lp->features |= XAE_FEATURE_PARTIAL_RX_CSUM;
                        break;
                case 2:
-                       lp->csum_offload_on_rx_path =
-                               XAE_FEATURE_FULL_RX_CSUM;
                        lp->features |= XAE_FEATURE_FULL_RX_CSUM;
                        break;
-               default:
-                       lp->csum_offload_on_rx_path = XAE_NO_CSUM_OFFLOAD;
                }
        }
        /* For supporting jumbo frames, the Axi Ethernet hardware must have