diff options
Diffstat (limited to 'drivers/net/ethernet/neterion/s2io.c')
-rw-r--r-- | drivers/net/ethernet/neterion/s2io.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index c27fb3dda9f4..76ae47627200 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c | |||
@@ -5391,10 +5391,10 @@ static void s2io_ethtool_gdrvinfo(struct net_device *dev, | |||
5391 | { | 5391 | { |
5392 | struct s2io_nic *sp = netdev_priv(dev); | 5392 | struct s2io_nic *sp = netdev_priv(dev); |
5393 | 5393 | ||
5394 | strncpy(info->driver, s2io_driver_name, sizeof(info->driver)); | 5394 | strlcpy(info->driver, s2io_driver_name, sizeof(info->driver)); |
5395 | strncpy(info->version, s2io_driver_version, sizeof(info->version)); | 5395 | strlcpy(info->version, s2io_driver_version, sizeof(info->version)); |
5396 | strncpy(info->fw_version, "", sizeof(info->fw_version)); | 5396 | strlcpy(info->fw_version, "", sizeof(info->fw_version)); |
5397 | strncpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info)); | 5397 | strlcpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info)); |
5398 | info->regdump_len = XENA_REG_SPACE; | 5398 | info->regdump_len = XENA_REG_SPACE; |
5399 | info->eedump_len = XENA_EEPROM_SPACE; | 5399 | info->eedump_len = XENA_EEPROM_SPACE; |
5400 | } | 5400 | } |
@@ -6616,10 +6616,10 @@ static void s2io_ethtool_get_strings(struct net_device *dev, | |||
6616 | } | 6616 | } |
6617 | } | 6617 | } |
6618 | 6618 | ||
6619 | static int s2io_set_features(struct net_device *dev, u32 features) | 6619 | static int s2io_set_features(struct net_device *dev, netdev_features_t features) |
6620 | { | 6620 | { |
6621 | struct s2io_nic *sp = netdev_priv(dev); | 6621 | struct s2io_nic *sp = netdev_priv(dev); |
6622 | u32 changed = (features ^ dev->features) & NETIF_F_LRO; | 6622 | netdev_features_t changed = (features ^ dev->features) & NETIF_F_LRO; |
6623 | 6623 | ||
6624 | if (changed && netif_running(dev)) { | 6624 | if (changed && netif_running(dev)) { |
6625 | int rc; | 6625 | int rc; |