equal
deleted
inserted
replaced
2711 static void e100_diag_test(struct net_device *netdev, |
2711 static void e100_diag_test(struct net_device *netdev, |
2712 struct ethtool_test *test, u64 *data) |
2712 struct ethtool_test *test, u64 *data) |
2713 { |
2713 { |
2714 struct ethtool_cmd cmd; |
2714 struct ethtool_cmd cmd; |
2715 struct nic *nic = netdev_priv(netdev); |
2715 struct nic *nic = netdev_priv(netdev); |
2716 int i, err; |
2716 int i, err __attribute__ ((unused)); |
2717 |
2717 |
2718 memset(data, 0, E100_TEST_LEN * sizeof(u64)); |
2718 memset(data, 0, E100_TEST_LEN * sizeof(u64)); |
2719 data[0] = !mii_link_ok(&nic->mii); |
2719 data[0] = !mii_link_ok(&nic->mii); |
2720 data[1] = e100_eeprom_load(nic); |
2720 data[1] = e100_eeprom_load(nic); |
2721 if (test->flags & ETH_TEST_FL_OFFLINE) { |
2721 if (test->flags & ETH_TEST_FL_OFFLINE) { |