]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e663d13633099e74d1c46d7f52c6bf63452422c
treeae93aeb2ff9c133bcef993325535635f0c39e7d2
parent5ee889b8ceeca49911e0902b34573dc496f55a79
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