RDMA/uverbs: Unify return values of not supported command
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 21 Feb 2018 16:12:36 +0000 (18:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 23 Feb 2018 03:29:36 +0000 (22:29 -0500)
commitf2630ce2fb93eab5f50aa00dac7ae24a3b4ce17f
treedb9937395537b32589b2a7c50eae5e1e98e3d0cb
parenta9ed5b38aad704bbc250f9df2e9a29ee54388829
RDMA/uverbs: Unify return values of not supported command

The non-existing command is supposed to return -EOPNOTSUPP, but the
current code returns different errors for different flows for the
same failure. This patch unifies those flows.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c