diff options
author | Erez Alfasi <ereza@mellanox.com> | 2018-12-02 17:40:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-03 16:34:31 -0800 |
commit | 95aac2cdafd8c8298c9b2589c52f44db0d824e0e (patch) | |
tree | a5a8bfe2b2f9b6c765e7b9bf7ecfa71e91332fcd /mm/cma.h | |
parent | 30fcd6a9edf1a169a07c3558f3a6e6a0007760fb (diff) | |
download | linux-95aac2cdafd8c8298c9b2589c52f44db0d824e0e.tar.bz2 |
net/mlx4_core: Fix return codes of unsupported operations
Functions __set_port_type and mlx4_check_port_params returned
-EINVAL while the proper return code is -EOPNOTSUPP as a
result of an unsupported operation. All drivers should generate
this and all users should check for it when detecting an
unsupported functionality.
Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/cma.h')
0 files changed, 0 insertions, 0 deletions