Skip to content

Commit b1e455c

Browse files
Sean Andersonkuba-moo
authored andcommitted
net: xilinx: axienet: Remove unused checksum variables
These variables are set but never used. Remove them. Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Radhey Shyam Pandey <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d59239f commit b1e455c

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,6 @@ struct skbuf_dma_descriptor {
529529
* supported, the maximum frame size would be 9k. Else it is
530530
* 1522 bytes (assuming support for basic VLAN)
531531
* @rxmem: Stores rx memory size for jumbo frame handling.
532-
* @csum_offload_on_tx_path: Stores the checksum selection on TX side.
533-
* @csum_offload_on_rx_path: Stores the checksum selection on RX side.
534532
* @coalesce_count_rx: Store the irq coalesce on RX side.
535533
* @coalesce_usec_rx: IRQ coalesce delay for RX
536534
* @coalesce_count_tx: Store the irq coalesce on TX side.
@@ -609,9 +607,6 @@ struct axienet_local {
609607
u32 max_frm_size;
610608
u32 rxmem;
611609

612-
int csum_offload_on_tx_path;
613-
int csum_offload_on_rx_path;
614-
615610
u32 coalesce_count_rx;
616611
u32 coalesce_usec_rx;
617612
u32 coalesce_count_tx;

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,38 +2639,26 @@ static int axienet_probe(struct platform_device *pdev)
26392639
if (!ret) {
26402640
switch (value) {
26412641
case 1:
2642-
lp->csum_offload_on_tx_path =
2643-
XAE_FEATURE_PARTIAL_TX_CSUM;
26442642
lp->features |= XAE_FEATURE_PARTIAL_TX_CSUM;
26452643
/* Can checksum TCP/UDP over IPv4. */
26462644
ndev->features |= NETIF_F_IP_CSUM;
26472645
break;
26482646
case 2:
2649-
lp->csum_offload_on_tx_path =
2650-
XAE_FEATURE_FULL_TX_CSUM;
26512647
lp->features |= XAE_FEATURE_FULL_TX_CSUM;
26522648
/* Can checksum TCP/UDP over IPv4. */
26532649
ndev->features |= NETIF_F_IP_CSUM;
26542650
break;
2655-
default:
2656-
lp->csum_offload_on_tx_path = XAE_NO_CSUM_OFFLOAD;
26572651
}
26582652
}
26592653
ret = of_property_read_u32(pdev->dev.of_node, "xlnx,rxcsum", &value);
26602654
if (!ret) {
26612655
switch (value) {
26622656
case 1:
2663-
lp->csum_offload_on_rx_path =
2664-
XAE_FEATURE_PARTIAL_RX_CSUM;
26652657
lp->features |= XAE_FEATURE_PARTIAL_RX_CSUM;
26662658
break;
26672659
case 2:
2668-
lp->csum_offload_on_rx_path =
2669-
XAE_FEATURE_FULL_RX_CSUM;
26702660
lp->features |= XAE_FEATURE_FULL_RX_CSUM;
26712661
break;
2672-
default:
2673-
lp->csum_offload_on_rx_path = XAE_NO_CSUM_OFFLOAD;
26742662
}
26752663
}
26762664
/* For supporting jumbo frames, the Axi Ethernet hardware must have

0 commit comments

Comments
 (0)