summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx4/fw.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/fw.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/fw.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/fw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/fw.c b/drivers/net/ethernet/mellanox/mlx4/fw.c
index 84bab9f0732e..25b5b32e958f 100644
--- a/drivers/net/ethernet/mellanox/mlx4/fw.c
+++ b/drivers/net/ethernet/mellanox/mlx4/fw.c
@@ -672,7 +672,7 @@ int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u8 gen_or_port,
MLX4_GET(field, outbox, QUERY_FUNC_CAP_PHYS_PORT_OFFSET);
func_cap->physical_port = field;
if (func_cap->physical_port != gen_or_port) {
- err = -ENOSYS;
+ err = -EINVAL;
goto out;
}