RDMA/qed: Use accurate error num in qed_cxt_dynamic_ilt_alloc
authorPrabhakar Kushwaha <pkushwaha@marvell.com>
Thu, 29 Jul 2021 15:17:31 +0000 (18:17 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Jul 2021 14:27:33 +0000 (11:27 -0300)
commit090473004b026747a2795244ecd67bd51a24c923
tree65c7f2c67d9d5323639a107bbc7dcf490de0f9a5
parent991c4274dc17b58b642894a48ccae85c9e53aad6
RDMA/qed: Use accurate error num in qed_cxt_dynamic_ilt_alloc

To have more accurate error return type use -EOPNOTSUPP instead of
-EINVAL.

Link: https://lore.kernel.org/r/20210729151732.30995-1-pkushwaha@marvell.com
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/net/ethernet/qlogic/qed/qed_cxt.c