stmmac: intel: remove unused 'has_crossts' flag
authorWong Vee Khee <veekhee@apple.com>
Wed, 17 Aug 2022 06:43:24 +0000 (14:43 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Aug 2022 03:40:52 +0000 (20:40 -0700)
The 'has_crossts' flag was not used anywhere in the stmmac driver,
removing it from both header file and dwmac-intel driver.

Signed-off-by: Wong Vee Khee <veekhee@apple.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20220817064324.10025-1-veekhee@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
include/linux/stmmac.h

index 52f9ed8..1d96ca9 100644 (file)
@@ -610,7 +610,6 @@ static int intel_mgbe_common_data(struct pci_dev *pdev,
        plat->int_snapshot_num = AUX_SNAPSHOT1;
        plat->ext_snapshot_num = AUX_SNAPSHOT0;
 
-       plat->has_crossts = true;
        plat->crosststamp = intel_crosststamp;
        plat->int_snapshot_en = 0;
 
index 8df475d..fb2e886 100644 (file)
@@ -257,7 +257,6 @@ struct plat_stmmacenet_data {
        u8 vlan_fail_q;
        unsigned int eee_usecs_rate;
        struct pci_dev *pdev;
-       bool has_crossts;
        int int_snapshot_num;
        int ext_snapshot_num;
        bool int_snapshot_en;