RDMA/ipoib: Fix check for return code from ib_create_srq
authorKamal Heib <kamalheib1@gmail.com>
Mon, 30 Jul 2018 18:56:44 +0000 (21:56 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:29:45 +0000 (20:29 -0600)
commite586e1e1b73f3dc020b82e6fc42c7789b7d0e95d
treec857dc02ced53c5302782cd7e5a2b4d151199915
parent8380b74e7d606c4e053d7eea623362fcd8d432c2
RDMA/ipoib: Fix check for return code from ib_create_srq

Make sure to check for "-EOPNOTSUPP" instead of "-ENOSYS" which is the
return code from ib_create_srq() in case that it not supported.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c