RDMA/cma: Optimize error handling
authorKrishna Kumar <krkumar2@in.ibm.com>
Fri, 29 Sep 2006 19:09:51 +0000 (12:09 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 2 Oct 2006 21:52:16 +0000 (14:52 -0700)
commit3f168d2b66d2314fea40614a3b966c1a0b6241a9
treeae93aeb2ff9c133bcef993325535635f0c39e7d2
parent94de178ac636e9d6f89b11cb3dd400b777942ac9
RDMA/cma: Optimize error handling

Reorganize code relating to cma_get_net_info() and rdam_create_id() to
optimize error case handling (no need to alloc memory/etc. as part of
rdma_create_id() if input parameters are wrong).

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c