summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2017-01-29 19:56:13 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-30 23:26:41 +0300
commit72b8eaab245e66e5789378eb8812f72c8354dda6 (patch)
treea705dae9879b50a1fc44cdf2ad1e4a1ed16e0edc /drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
parent30357d7d8aaf2a980ab17c2ce054b2b87e60af88 (diff)
downloadlinux-72b8eaab245e66e5789378eb8812f72c8354dda6.tar.xz
net/mlx4: Replace ENOSYS with better fitting error codes
Conform the following warning: WARNING: ENOSYS means 'invalid syscall nr' and nothing else. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_ethtool.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
index d5a9372ed84d..17a600b9f81b 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
@@ -1980,7 +1980,7 @@ static int mlx4_en_get_module_info(struct net_device *dev,
modinfo->eeprom_len = ETH_MODULE_SFF_8472_LEN;
break;
default:
- return -ENOSYS;
+ return -EINVAL;
}
return 0;